Explorar o código

feat:修改跳转页面逻辑

wangsisi hai 3 días
pai
achega
2969a85006
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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);