Skip to content

Commit

Permalink
fix(menu-btn-permission): 修复菜单按钮列表为空时,未清楚的问题 (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo authored Nov 8, 2024
1 parent 283a83a commit 94c7ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/modules/base/views/permission/menu/menu-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const form = ref<Record<string, any>>({
})

function setData(data: Record<string, any>) {
form.value.btnPermission = []
Object.keys(data).map((name: string) => {
if (name === 'parent_id' && data[name] === 0) {
form.value[name] = undefined
Expand Down

0 comments on commit 94c7ded

Please sign in to comment.