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
Commit
3e2b5e18
authored
Mar 01, 2023
by
chengyangwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复el-tree组件setCheckedKeys设置一旦选中父级子级也被选中
parent
265302d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/views/system/tenantPackage/index.vue
+3
-1
No files found.
src/views/system/tenantPackage/index.vue
View file @
3e2b5e18
...
@@ -125,7 +125,9 @@ const handleUpdate = async (rowId: number) => {
...
@@ -125,7 +125,9 @@ const handleUpdate = async (rowId: number) => {
const
res
=
await
TenantPackageApi
.
getTenantPackageApi
(
rowId
)
const
res
=
await
TenantPackageApi
.
getTenantPackageApi
(
rowId
)
unref
(
formRef
)?.
setValues
(
res
)
unref
(
formRef
)?.
setValues
(
res
)
// 设置选中
// 设置选中
unref
(
treeRef
)?.
setCheckedKeys
(
res
.
menuIds
)
res
.
menuIds
?.
forEach
((
item
:
any
)
=>
{
unref
(
treeRef
)?.
setChecked
(
item
,
true
,
false
);
})
}
}
// 提交按钮
// 提交按钮
...
...
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