소스 검색

feat:修改跳转页面逻辑

wangsisi 3 일 전
부모
커밋
2969a85006
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/old_mini/mine/pages/userInfo.vue

+ 4 - 0
src/views/old_mini/mine/pages/userInfo.vue

@@ -130,6 +130,10 @@ const handleConfirm = () => {
 };
 
 onMounted(() => {
+    if(localStorage.getItem("SET_USER_CUR_ROLE") == 2){
+        router.replace('/home');
+        return;
+    }
     getRoleList();
     if (route.query.miniJson) {
         const data = JSON.parse(route.query.miniJson);