fix: 修正布尔选项字典值从0改为-1以保持一致性

This commit is contained in:
2026-02-03 13:38:42 +08:00
parent 8337f47d63
commit 0e8558269f

View File

@@ -340,7 +340,7 @@ const state = reactive({
const boolOptions = [ const boolOptions = [
{ dictLabel: '全部', dictValue: -2, listClass: 'success' }, { dictLabel: '全部', dictValue: -2, listClass: 'success' },
{ dictLabel: '是', dictValue: 1, listClass: 'success' }, { dictLabel: '是', dictValue: 1, listClass: 'success' },
{ dictLabel: '否', dictValue: 0, listClass: 'info' } { dictLabel: '否', dictValue: -1, listClass: 'info' }
] ]
const { form, rules, options } = toRefs(state) const { form, rules, options } = toRefs(state)