浏览代码

1、修改运营端登录问题

zhoux 1 年之前
父节点
当前提交
401d3352c6
共有 2 个文件被更改,包括 3 次插入11 次删除
  1. 0 9
      src/router/index.js
  2. 3 2
      src/view/login/login.vue

+ 0 - 9
src/router/index.js

@@ -79,15 +79,6 @@ router.beforeEach((to, from, next) => {
       return item === to.name
     })) {
       next()
-    } else if (NO_APP_AUTH_NAME.some(item => {
-      console.log(item, to)
-      return item === to.name
-    })) {
-      next()
-    } else if (to.name != null && to.name.indexOf("/app") > 0) {
-      next({
-        name: 'app-login' // 跳转到登录页
-      })
     } else {
       next({
         name: 'login' // 跳转到登录页

+ 3 - 2
src/view/login/login.vue

@@ -31,8 +31,8 @@
           <div class="hj-logo">
             <div style="display: flex;align-items: center">
               <img :src="dk_logo" style="width: 60px;height: 60px;"/>
-              <img :src="dk_mini" style="width: 208px;height: 80px;margin-left: 10px"/>
-              <div style="font-size: 50px;font-weight: bold;color: #1B3769;">智云版</div>
+<!--              <img :src="dk_mini" style="width: 208px;height: 80px;margin-left: 10px"/>-->
+              <div style="font-size: 50px;font-weight: bold;color: #1B3769;">东科智云管理后台</div>
             </div>
           </div>
 
@@ -165,6 +165,7 @@ export default {
         this.$Message.destroy()
         if (res.code === this.$config.SUCCESS_CODE) {
           if (res.data) {
+            console.log('f33333',res)
             clearInterval(this.interval)
             this.$router.push({
               name: this.$config.homeName