From 5dfa4aae98c53f1f3d5f8b9fa5308f359bfea104 Mon Sep 17 00:00:00 2001 From: jazz <49930677+jxmanxk@users.noreply.github.com> Date: 星期五, 04 三月 2022 19:23:41 +0800 Subject: [PATCH] update_202203041923_短信中心列表,短信临时发送 --- src/layout/components/Sidebar/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 2e67afb..ca1c5f4 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -23,6 +23,7 @@ import Logo from './Logo' import SidebarItem from './SidebarItem' import variables from '@/styles/variables.scss' +var isMock = require('@/config/baseConfig').isMock // 鍏ㄥ眬閰嶇疆鏂囦欢 export default { components: { SidebarItem, Logo }, @@ -32,7 +33,8 @@ ]), routes() { let routes = this.$router.options.routes - routes = this.jun_filterAuth(routes, this.getAuthDataFN()) + routes = this.jun_filterAuth(routes, () => {}) + // routes = this.jun_filterAuth(routes, this.getAuthDataFN()) // console.log('this.getAuthDataFN()', this.getAuthDataFN()) // console.log('$router.options.routes', this.$router.options.routes) // console.log('routes', routes) @@ -63,6 +65,8 @@ return menuData.filter((menu) => { // 浠呮湁涓�绾ц彍鍗� if (!menu.children) { + // mock妯″紡 鍏ㄦ樉绀� + if (isMock) return true // 涓嶅瓨鍦ㄦ潈闄愮殑璇濓紝榛樿鏄剧ず // console.log(menu.auth, menu.auth ? !!authData[menu.auth] : true) // 蹇借hidden=true @@ -72,6 +76,8 @@ if (menu.children.length) { // 閫掑綊 menu.children = this.jun_filterAuth(menu.children, authData) + // mock妯″紡 鍏ㄦ樉绀� + if (isMock) return true return menu.children.length } }) -- Gitblit v1.8.0