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

@@ -31,7 +31,7 @@
<a-button @click="reset">重置</a-button>
</template>
<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>
<span>新增</span>
</a-button>

View File

@@ -31,7 +31,7 @@
<a-button @click="reset">重置</a-button>
</template>
<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>
<span>新增</span>
</a-button>