We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9095970 commit ffd2b5bCopy full SHA for ffd2b5b
src/views/system/tenant/tenant.data.ts
@@ -143,7 +143,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
143
}
144
},
145
form: {
146
- component: 'InputNumber'
+ component: 'InputNumber',
147
+ value: null,
148
+ componentProps: {
149
+ min: 0
150
+ }
151
152
153
{
src/views/system/user/index.vue
@@ -394,6 +394,7 @@ const handleUpdate = async (rowId: number) => {
394
unref(formRef)?.delSchema('password')
395
// 设置数据
396
const res = await UserApi.getUserApi(rowId)
397
+ if (res.sex == 0) res.sex = null
398
unref(formRef)?.setValues(res)
399
400
const detailData = ref()
0 commit comments