From 86a9129cfe43bf8d81ef4b5b3d77566978e112a6 Mon Sep 17 00:00:00 2001 From: pixelqm <303176530@qq.com> Date: Fri, 20 Sep 2019 18:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8F=98=E6=9B=B4=E5=90=8E?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=89=8B=E5=8A=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/superAdmin/authority/authority.vue | 16 +++++++--------- QMPlusVuePage/src/view/superAdmin/menu/menu.vue | 15 +++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue index e20ed1fc..c8cf200c 100644 --- a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue +++ b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue @@ -67,7 +67,6 @@ import { createAuthority } from '@/api/authority' import { getBaseMenuTree, addMenuAuthority, getMenuAuthority } from '@/api/menu' -import { mapActions } from 'vuex' export default { name: 'Authority', data() { @@ -92,8 +91,6 @@ export default { } }, methods: { - ...mapActions('router', ['SetAsyncRouter']), - // 条数 handleSizeChange(val) { this.pageSize = val @@ -113,11 +110,13 @@ export default { }) .then(async () => { const res = await deleteAuthority({ authorityId: row.authorityId }) - this.$message({ - type: 'success', - message: '删除成功!' - }) - this.getAuthList() + if (res.success) { + this.$message({ + type: 'success', + message: '删除成功!' + }) + this.getAuthList() + } }) .catch(() => { this.$message({ @@ -189,7 +188,6 @@ export default { type: 'success', message: '添加成功!' }) - this.SetAsyncRouter() } this.closeDialog() } diff --git a/QMPlusVuePage/src/view/superAdmin/menu/menu.vue b/QMPlusVuePage/src/view/superAdmin/menu/menu.vue index 651660ad..c6b19b24 100644 --- a/QMPlusVuePage/src/view/superAdmin/menu/menu.vue +++ b/QMPlusVuePage/src/view/superAdmin/menu/menu.vue @@ -80,7 +80,6 @@