mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-04 07:05:07 +08:00
🚸 话题列表页触底加载
This commit is contained in:
@@ -12,7 +12,7 @@ const router = createRouter({ history: createWebHistory(), routes: routes });
|
||||
// 只有在特定页面忽略参数变化
|
||||
const ignoreRoutes: ReadonlyArray<string> = ["酒馆", "话题"];
|
||||
|
||||
// 解决路由重复问题
|
||||
// TODO:路由重构 解决路由重复问题
|
||||
router.afterEach((to, from) => {
|
||||
if (from.name === to.name) {
|
||||
if (from.query !== to.query && ignoreRoutes.includes(from.name?.toString() ?? "")) return;
|
||||
|
||||
Reference in New Issue
Block a user