Commit a6082652 by 芋道源码 Committed by Gitee

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

Merge pull request !440 from dhb52/N/A
parents 99f8fa82 c350fc46
......@@ -130,7 +130,7 @@ const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment