qymljy 1 year ago
parent
commit
9a4b742d8c
2 changed files with 7 additions and 6 deletions
  1. 1 1
      src/components/newLayout/modules/header.vue
  2. 6 5
      src/views/login/login.vue

+ 1 - 1
src/components/newLayout/modules/header.vue

@@ -39,7 +39,7 @@
       </el-dropdown-menu>
     </el-dropdown>-->
       <!--    <el-divider direction="vertical"></el-divider>-->
-      <el-button size="mint" type="primary"  style="background-color:rgb(52 106 145);margin-right: 20px;color: #FFFFFF" v-if="usertype == 1 || usertype == 0" @click="$router.push('/serviceDataScreen')">{{$t(`业务数据大屏`)}}</el-button>
+<!--      <el-button size="mint" type="primary"  style="background-color:rgb(52 106 145);margin-right: 20px;color: #FFFFFF" v-if="usertype == 1 || usertype == 0" @click="$router.push('/serviceDataScreen')">{{$t(`业务数据大屏`)}}</el-button>-->
       <svg
         t="1725853431060"
         class="icon"

+ 6 - 5
src/views/login/login.vue

@@ -318,11 +318,12 @@ export default {
           this.basicData.query_userauth().then(() => {
             this.basicData.querySite_Parameter();
             let usertype = JSON.parse(sessionStorage.getItem('active_account')).usertype
-            if (usertype == 1 || usertype == 0){
-              this.$router.push('/serviceDataScreen')
-            }else {
-              this.$router.push({ path: "/main" });
-            }
+            // if (usertype == 1 || usertype == 0){
+            //   this.$router.push('/serviceDataScreen')
+            // }else {
+            //   this.$router.push({ path: "/main" });
+            // }
+            this.$router.push({ path: "/main" });
             this.getAccountInfo();
           });
         } else {