소스 검색

提交代码

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() {
             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);
             }
         },