|
@@ -119,17 +119,19 @@
|
|
|
this.user = res.data;
|
|
|
// alert('本地存储的值' + localStorage.getItem('userInfo'))
|
|
|
// window.location.href = '/#/index';
|
|
|
- var href = window.location.href;
|
|
|
- if (href.indexOf('path') > 0) {
|
|
|
- var path = href.split('path=')[1].split('&')[0];
|
|
|
- if (path.indexOf('%2F') > 0) {
|
|
|
- path = path.replace('%2F','/');
|
|
|
- }
|
|
|
+ //存在BUG, 暂时不跳转到具体路由,直接进入主页好了。
|
|
|
+ // var href = window.location.href;
|
|
|
+ // if (href.indexOf('path') > 0) {
|
|
|
+ // var path = href.split('path=')[1].split('&')[0];
|
|
|
+ // if (path.indexOf('%2F') > 0) {
|
|
|
+ // path = path.replace('%2F','/');
|
|
|
+ // }
|
|
|
|
|
|
- this.$router.push(path);
|
|
|
- } else {
|
|
|
- this.$router.push("/index");
|
|
|
- }
|
|
|
+ // this.$router.push(path);
|
|
|
+ // } else {
|
|
|
+ // this.$router.push("/index");
|
|
|
+ // }
|
|
|
+ this.$router.push("/index");
|
|
|
|
|
|
}
|
|
|
}
|