Ver código fonte

提交代码

Lijy 4 dias atrás
pai
commit
792b2ef5c7

+ 2 - 5
fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/index/index.vue

@@ -344,11 +344,8 @@ export default {
         redirectIfNess() {
             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);
+                const linkAddress = href.split('path=/#')[1]
+                this.$router.push(linkAddress);
             }
         },