Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c350fc46
authored
May 06, 2024
by
dhb52
Committed by
Gitee
May 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: id=0导致sqlserver新增菜单失败
Signed-off-by: dhb52 <dhb52@126.com>
parent
66c6463f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/views/system/menu/MenuForm.vue
+2
-2
No files found.
src/views/system/menu/MenuForm.vue
View file @
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment