lxr vor 2 Monaten
Ursprung
Commit
47e52ba520
1 geänderte Dateien mit 16 neuen und 15 gelöschten Zeilen
  1. 16 15
      src/views/login/index.vue

+ 16 - 15
src/views/login/index.vue

@@ -564,7 +564,7 @@
           />
           />
         </el-form-item>
         </el-form-item>
       </el-form>
       </el-form>
-      <!-- 用户协议 -->
+      <!-- 用户协议 -->login
       <div class="agreement-wrapper">
       <div class="agreement-wrapper">
         <el-checkbox v-model="registerAgreed" />
         <el-checkbox v-model="registerAgreed" />
         <span class="agreement-text">
         <span class="agreement-text">
@@ -985,20 +985,21 @@ const handleLogin = async () => {
         // 使用 nextTick 确保路由已完全添加
         // 使用 nextTick 确保路由已完全添加
         await nextTick();
         await nextTick();
         const { contractManagement, foodBusinessLicense, entertainmentBusinessLicense } = await checkMenuClickPermission();
         const { contractManagement, foodBusinessLicense, entertainmentBusinessLicense } = await checkMenuClickPermission();
-        // 登录后根据不同证照权限跳转
-        if ((contractManagement && foodBusinessLicense && entertainmentBusinessLicense) || contractManagement) {
-          // 合同管理权限优先
-          router.replace("/licenseManagement/contractManagement");
-        } else if (foodBusinessLicense) {
-          // 食品经营许可证权限
-          router.replace("/licenseManagement/foodBusinessLicense");
-        } else if (entertainmentBusinessLicense) {
-          // 其他资质证明权限
-          router.replace("/licenseManagement/entertainmentLicense");
-        } else {
-          // 5.跳转到首页,使用 replace 避免历史记录问题
-          await router.replace(HOME_URL);
-        }
+        // // 登录后根据不同证照权限跳转
+        // if ((contractManagement && foodBusinessLicense && entertainmentBusinessLicense) || contractManagement) {
+        //   // 合同管理权限优先
+        //   router.replace("/licenseManagement/contractManagement");
+        // } else if (foodBusinessLicense) {
+        //   // 食品经营许可证权限
+        //   router.replace("/licenseManagement/foodBusinessLicense");
+        // } else if (entertainmentBusinessLicense) {
+        //   // 其他资质证明权限
+        //   router.replace("/licenseManagement/entertainmentLicense");
+        // } else {
+        //   // 5.跳转到首页,使用 replace 避免历史记录问题
+        //   await router.replace(HOME_URL);
+        // }
+        await router.replace(HOME_URL);
         ElNotification({
         ElNotification({
           title: "登录成功",
           title: "登录成功",
           type: "success",
           type: "success",