浏览代码

提交调整跳转

wenmenghao 10 月之前
父节点
当前提交
a99d693674
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      jydocs-pc/src/views/UserCollections.vue

+ 5 - 1
jydocs-pc/src/views/UserCollections.vue

@@ -130,7 +130,11 @@ export default {
       return subInfoArr
     },
     goCollect () {
-      this.$router.push('/')
+      // this.$router.push('/')
+      const link = this.$router.resolve({
+        path: '/'
+      })
+      location.href = link.href
     }
   }
 }