浏览代码

提交代码

Lijy 4 天之前
父节点
当前提交
792b2ef5c7
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      fhKeeper/formulahousekeeper/timesheet-workshop-h5/src/views/index/index.vue

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

@@ -344,11 +344,8 @@ export default {
         redirectIfNess() {
         redirectIfNess() {
             var href = window.location.href;
             var href = window.location.href;
             if (href.indexOf('path') > 0) {
             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);
             }
             }
         },
         },