jiajunchen 8 horas atrás
pai
commit
d743a4ad75
1 arquivos alterados com 1 adições e 13 exclusões
  1. 1
    13
      src/router/index.ts

+ 1
- 13
src/router/index.ts Ver arquivo

@@ -787,14 +787,8 @@ router.beforeEach(async (to, from, next) => {
787 787
 		return null; // 或者抛出错误,根据你的业务需求
788 788
 	}
789 789
 	console.log(to);
790
-	if (to.path == '/Home1'
791
-		||to.path=='/yinhuan/todo_detail/index'||
792
-		to.path == '/lz-rcd-detail'||to.path == '/emergencyResources'||
793
-		to.path == '/cardManager/specialWork'||to.path == '/cardManager/equipment'||
794
-		to.path == '/cardManager/engineer'||to.path =='/fcbkdatistart') {
790
+	if (to.path == '/Home1'||to.path=='/yinhuan/todo_detail/index'|| to.path == '/lz-rcd-detail'||to.path == '/emergencyResources'||to.path == '/cardManager/specialWork'||to.path == '/cardManager/equipment'||to.path == '/cardManager/engineer') {
795 791
 		console.log("++++++判断一下是不是企微或者掌上山钢扫码:"+isInWeCom());
796
-
797
-
798 792
 		/*const token = localStorage.getItem('token');
799 793
 		// 判断是否已经初始化过用户信息
800 794
 		const hasUserInfo = !!localStorage.getItem('userId');
@@ -829,12 +823,6 @@ router.beforeEach(async (to, from, next) => {
829 823
 					showFailToast("获取信息失败,请联系管理员")
830 824
 					window.history.back();
831 825
 				} else {
832
-					if (to.path =='/fcbkdatistart'){
833
-						if ( !isInWeCom()) {
834
-							//如果不是企业微信(掌上山钢扫码)
835
-
836
-
837
-						}
838 826
 					// 如果没有历史记录,跳转到首页或其他页面
839 827
 					router.push('/login');
840 828
 				}

Carregando…
Cancelar
Salvar