From d9cc69690e5c3ea805e8ff642a1839e0333c9b8f Mon Sep 17 00:00:00 2001
From: children117cl <278950112@qq.com>
Date: 星期五, 25 六月 2021 12:42:14 +0800
Subject: [PATCH] 登录页密码限制文案修复;新增管理员限制密码长度5-20;管理员列表修复帐号类型显示

---
 src/layout/components/Sidebar/index.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 2e67afb..841b029 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 },
@@ -63,6 +64,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 +75,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