fix: 修复新增菜单时,由于 parentId 传值错误导致的报错

This commit is contained in:
2024-04-22 19:46:53 +08:00
parent 1dd29dd78a
commit 81194dbb52
3 changed files with 2 additions and 3 deletions

View File

@@ -92,7 +92,6 @@ const isGridView = ref(false)
const iconList: string[] = [] const iconList: string[] = []
for (const path in SvgIconModules) { for (const path in SvgIconModules) {
console.log(path)
const name = path.replace('/src/assets/icons/', '').replace('.svg', '') const name = path.replace('/src/assets/icons/', '').replace('.svg', '')
iconList.push(name) iconList.push(name)
} }

View File

@@ -31,7 +31,7 @@
<a-button @click="reset">重置</a-button> <a-button @click="reset">重置</a-button>
</template> </template>
<template #custom-right> <template #custom-right>
<a-button v-permission="['system:dept:add']" type="primary" @click="onAdd"> <a-button v-permission="['system:dept:add']" type="primary" @click="onAdd()">
<template #icon><icon-plus /></template> <template #icon><icon-plus /></template>
<span>新增</span> <span>新增</span>
</a-button> </a-button>

View File

@@ -31,7 +31,7 @@
<a-button @click="reset">重置</a-button> <a-button @click="reset">重置</a-button>
</template> </template>
<template #custom-right> <template #custom-right>
<a-button v-permission="['system:menu:add']" type="primary" @click="onAdd"> <a-button v-permission="['system:menu:add']" type="primary" @click="onAdd()">
<template #icon><icon-plus /></template> <template #icon><icon-plus /></template>
<span>新增</span> <span>新增</span>
</a-button> </a-button>