fix: 修改工单bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m15s

This commit is contained in:
sexygoat
2026-04-22 18:33:52 +08:00
parent fd22dc7ad4
commit a9467e8a0c
8 changed files with 64 additions and 34 deletions

View File

@@ -68,11 +68,11 @@
set: (value) => emit('update:modelValue', value)
})
const currentMode = computed(() => props.currentMode ?? 0)
const currentMode = computed(() => Number(props.currentMode) ?? 0)
watch(visible, (newVal) => {
if (newVal) {
form.switch_mode = props.currentMode ?? 0
form.switch_mode = Number(props.currentMode) ?? 0
}
})