2
0

fix:流量限制仅为整数输入

This commit is contained in:
zhongzm
2025-01-21 16:15:38 +08:00
parent 37fee941d2
commit 7fbaf0d67f
2 changed files with 3 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
v-model:columns="columnChecks"
:loading="loading"
:show-delete="false"
:show-add="false"
:notShowAdd="true"
@refresh="getData"
/>
</div>
@@ -95,6 +95,7 @@
v-model:value="formState.traffic"
placeholder="请输入流量"
:min="1"
:precision="0"
style="width: 100%"
/>
<ASelect
@@ -193,7 +194,6 @@ const scrollConfig = computed(() => {
});
const periodMap: Record<number, string> = {
0: '小时',
1: '天',
2: '月',
3: '年'

View File

@@ -43,6 +43,7 @@
<AInputNumber
v-model:value="currentRule.traffic"
:min="1"
:precision="0"
style="width: 100%"
placeholder="请输入流量大小"
/>