From 7311c00d74de9f5ab4938984cb56ebf7aab220bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 19 Jul 2023 17:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=85=8D=E7=BD=AE=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/InterFace.Dash/src/api/wms-interface.js | 9 + .../src/layout/components/Navbar.vue | 7 +- .../src/layout/components/Sidebar/index.vue | 3 + PC/InterFace.Dash/src/permission.js | 137 ++++++---- PC/InterFace.Dash/src/router/index.js | 15 +- .../src/store/modules/permission.js | 256 +++++++++++++----- .../src/views/dashboard/index.vue | 2 +- PC/InterFace.Dash/src/views/login/index.vue | 10 +- 8 files changed, 312 insertions(+), 127 deletions(-) diff --git a/PC/InterFace.Dash/src/api/wms-interface.js b/PC/InterFace.Dash/src/api/wms-interface.js index 335cf4b..64c0956 100644 --- a/PC/InterFace.Dash/src/api/wms-interface.js +++ b/PC/InterFace.Dash/src/api/wms-interface.js @@ -21,6 +21,15 @@ export function getInterfaceBoard() { }) } +// 获取菜单数据 +export function getDefinitionMenu(IncludeTypes) { + return request({ + method:'get', + url: base_api + '/api/abp/application-configuration', + params:{IncludeLocalizationResources:true} + }) +} + // 获取导出配置信息接口 // export function getExportConfigList(name) { // return request({ diff --git a/PC/InterFace.Dash/src/layout/components/Navbar.vue b/PC/InterFace.Dash/src/layout/components/Navbar.vue index d7fcd54..6f898db 100644 --- a/PC/InterFace.Dash/src/layout/components/Navbar.vue +++ b/PC/InterFace.Dash/src/layout/components/Navbar.vue @@ -78,8 +78,11 @@ export default { this.$store.dispatch("app/toggleSideBar"); }, async logout() { - await this.$store.dispatch("user/logout"); - this.$router.push(`/login?redirect=${this.$route.fullPath}`); + // await this.$store.dispatch("user/logout"); + // this.$router.push(`/login?redirect=${this.$route.fullPath}`); + localStorage.removeItem("interfaceBoardColumnsNames") + localStorage.removeItem("currentUserInfo") + this.$router.push('/login?isAutoLogin=false') }, handleClick() { diff --git a/PC/InterFace.Dash/src/layout/components/Sidebar/index.vue b/PC/InterFace.Dash/src/layout/components/Sidebar/index.vue index d08c31e..20140e0 100644 --- a/PC/InterFace.Dash/src/layout/components/Sidebar/index.vue +++ b/PC/InterFace.Dash/src/layout/components/Sidebar/index.vue @@ -50,6 +50,9 @@ export default { return !this.sidebar.opened } }, + mounted(){ + console.log(54,this.permission_routes) + } }