lxh 1 month ago
parent
commit
652bf4acbf
1 changed files with 17 additions and 12 deletions
  1. 17 12
      common/router/index.js

+ 17 - 12
common/router/index.js

@@ -53,27 +53,32 @@ router.beforeEach((to, from, next) => {
 
 						} catch (e) {
 							redirect = true;
-
-							if (process.env.VUE_APP_PLATFORM != 'h5') {
-								uni.navigateTo({
-									url: 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl)
-								});
-							} else {
-								window.location.href = 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl);
-							}
+							uni.navigateTo({
+								url: 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl)
+							});
+							// if (process.env.VUE_APP_PLATFORM != 'h5') {
+							// 	uni.navigateTo({
+							// 		url: 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl)
+							// 	});
+							// } else {
+							// 	window.location.href = 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl);
+							// }
 
 						}
 					} else {
 						if (window.location.search == '?type=noCas') {
 						} else {
 							redirect = true;
-							if (process.env.VUE_APP_PLATFORM != 'h5') {
 								uni.navigateTo({
 									url: 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl)
 								});
-							} else {
-								window.location.href = 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl);
-							}
+							// if (process.env.VUE_APP_PLATFORM != 'h5') {
+							// 	uni.navigateTo({
+							// 		url: 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl)
+							// 	});
+							// } else {
+							// 	window.location.href = 'https://id.shendong.com.cn/default' + '/login?service=' + encodeURIComponent(locationUrl);
+							// }
 						}
 					}
 				}