🚸 话题列表页触底加载

This commit is contained in:
BTMuli
2025-06-25 23:05:40 +08:00
parent 4022df08ce
commit 8f4d3d2285
2 changed files with 19 additions and 22 deletions

View File

@@ -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;