Skip to content

Commit 2a54be9

Browse files
committed
fix: view table
1 parent 4e618a6 commit 2a54be9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/views/list/TableInnerEditList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</div>
6363

6464
<div class="table-operator">
65-
<a-button type="primary" icon="plus" @click="() => $router.push({name: 'anime-add'})">新建</a-button>
65+
<a-button type="primary" icon="plus">新建</a-button>
6666
<a-dropdown v-if="selectedRowKeys.length > 0">
6767
<a-menu slot="overlay">
6868
<a-menu-item key="1"><a-icon type="delete" />删除</a-menu-item>

src/views/list/TableList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
</div>
6363

6464
<div class="table-operator">
65-
<a-button type="primary" icon="plus" v-if="$auth('table.add')">新建</a-button>
66-
<a-dropdown v-if="$auth('table.edit') && selectedRowKeys.length > 0">
65+
<a-button type="primary" icon="plus" v-action:add>新建</a-button>
66+
<a-dropdown v-action:edit && selectedRowKeys.length > 0">
6767
<a-menu slot="overlay">
6868
<a-menu-item key="1"><a-icon type="delete" />删除</a-menu-item>
6969
<!-- lock | unlock -->

0 commit comments

Comments
 (0)