cyy 10 месяцев назад
Родитель
Сommit
7094e9b04c
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      src/router/index.js
  2. 1 1
      src/views/system/login/index.vue

+ 3 - 3
src/router/index.js

@@ -40,7 +40,6 @@ const whiteList = ['/login', '/register', '/forget', '/authredirect']
  * 权限验证
  */
 router.beforeEach(async(to, from, next) => {
-  console.log(window.location)
   const parmObj = {}
   if (window.location.search !== '') {
     const str = window.location.search.slice(1, window.location.search.length)
@@ -48,10 +47,11 @@ router.beforeEach(async(to, from, next) => {
     if (strArr.length > 0) {
       strArr.forEach((e, i) => {
         const arr = e.split('=')
-        parmObj[arr[0]] = arr[1]
+        if (e !== '') {
+          parmObj[arr[0]] = arr[1]
+        }
       })
     }
-    console.log(router, str)
   }
   // 进度条
   NProgress.start()

+ 1 - 1
src/views/system/login/index.vue

@@ -6,7 +6,7 @@
           <van-icon name="comment-circle-o" class="logo-icon" />
           <div class="logo-text">{{ $t('common.platform') }}</div>
           <br>
-          <div class="logo-text">(11111111111)</div>
+          <!-- <div class="logo-text">(11111111111)</div> -->
         </div>
       </div>
       <div class="ibps-p">