Ver Fonte

消息点击改为直接跳转到首页

seyason há 1 ano atrás
pai
commit
756fc9be14

+ 12 - 10
fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/login/index.vue

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