qymljy пре 1 година
родитељ
комит
9ab7a11021
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/views/login/login.vue

+ 2 - 1
src/views/login/login.vue

@@ -318,7 +318,8 @@ 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){
+            let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
+            if ((usertype == 1 || usertype == 0) && siteid == 'HY' ){
               this.$router.push('/serviceDataScreen')
             }else {
               this.$router.push({ path: "/main" });