wangguoyu 15 giờ trước cách đây
mục cha
commit
21df2eb472
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      pages/Login/clientIndex.vue

+ 10 - 1
pages/Login/clientIndex.vue

@@ -228,7 +228,11 @@
                 cacheManager.set('auth', res.data)
                 store.setIsCanBack(false)
                 gotoPage();
-            }else{
+            }else if(res.data.type ===6){
+				cacheManager.set('auth', res.data)
+				store.setIsCanBack(false)
+				gotoPage2();
+			}else{
                 toast('登录失败,您的身份有误,请联系管理员。')
             }
         }).catch(err => {
@@ -242,6 +246,11 @@
         uni.navigateTo({
             url: `/pages/client/ShouYe/shouye`
         })
+    } 
+	function gotoPage2(){
+        uni.navigateTo({
+            url: `/pages/kehu/shouYe/shouye`
+        })
     }
 
     function getAllImg() {