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/router/index.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index ebfad34..1696681 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -9,6 +9,7 @@
 import demo_router from './demo_router'
 import system_router from './system_router'
 import op_router from './op_router'
+import agreement_router from './agreement_router'
 
 /**
  * 娉�:瀛愯彍鍗曞彧鍑虹幇鍦ㄨ矾绾垮瓙鏃躲�傞暱搴�> = 1
@@ -61,6 +62,7 @@
 
   system_router,
   demo_router,
+  agreement_router,
 
   {
     path: 'external-link',
@@ -101,6 +103,17 @@
 
 const router = createRouter()
 
+// 瀹堝崼锛屽鐞唊eepAlive鍛ㄦ湡锛岀敤isBack鏍囪鏄惁灞炰簬浠庡睘椤甸潰鍚庨��
+router.beforeEach(function(to, from, next) {
+  // 鍒ゆ柇鏄惁浠庝粠灞為〉闈㈠悗閫�
+  if (to.meta.keepAlive && from.meta.activeMenu === to.path) {
+    to.meta.isBack = true
+  } else {
+    to.meta.isBack = false
+  }
+  next(true)
+})
+
 // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
 export function resetRouter() {
   const newRouter = createRouter()

--
Gitblit v1.8.0