|
@@ -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);
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
}
|