Sfoglia il codice sorgente

fix: 修复侧边栏跳转问题

zhangyuhan 1 anno fa
parent
commit
a4eec814f1

+ 6 - 3
apps/bigmember_pc/src/views/article-content/components/ContentRightTimeLine.vue

@@ -26,11 +26,14 @@ function doOpen(item) {
     const newRoute = {
       name: currentRoute.name,
       params: {
-        content: currentRoute.params.content,
+        content: 'content',
         id: item.id + '.html'
-      }
+      },
+      query: currentRoute.query
     }
-    router.push(newRoute)
+    const link = router.resolve(newRoute)
+
+    location.href = link.href.replace('/swordfish/page_big_pc', '')
   }
 }
 </script>