fix: id=0导致sqlserver新增菜单失败

Signed-off-by: dhb52 <dhb52@126.com>
This commit is contained in:
dhb52 2024-05-06 14:43:52 +00:00 committed by Gitee
parent 66c6463f44
commit c350fc466e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -130,7 +130,7 @@ const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 12
const formType = ref('') // create - update -
const formData = ref({
id: 0,
id: undefined,
name: '',
permission: '',
type: SystemMenuTypeEnum.DIR,
@ -231,7 +231,7 @@ const getTree = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
id: 0,
id: undefined,
name: '',
permission: '',
type: SystemMenuTypeEnum.DIR,