diff --git a/src/views/system/tenant/tenant.data.ts b/src/views/system/tenant/tenant.data.ts index 1137b44a..4d9e6d33 100644 --- a/src/views/system/tenant/tenant.data.ts +++ b/src/views/system/tenant/tenant.data.ts @@ -143,7 +143,11 @@ const crudSchemas = reactive({ } }, form: { - component: 'InputNumber' + component: 'InputNumber', + value: null, + componentProps: { + min: 0 + } } }, { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 2f9ba9b0..c59e6d18 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -394,6 +394,7 @@ const handleUpdate = async (rowId: number) => { unref(formRef)?.delSchema('password') // 设置数据 const res = await UserApi.getUserApi(rowId) + if (res.sex == 0) res.sex = null unref(formRef)?.setValues(res) } const detailData = ref()