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

Merge pull request !440 from dhb52/N/A
This commit is contained in:
芋道源码 2024-05-06 14:53:17 +00:00 committed by Gitee
commit a60826529b
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,