fix: 修正Tab切换时的显示问题
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m46s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m46s
- 切换Tab时重置页码
This commit is contained in:
@ -205,6 +205,10 @@
|
|||||||
router.replace(localePath({ path: '/search' }));
|
router.replace(localePath({ path: '/search' }));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(activeTab, () => {
|
||||||
|
currentPage.value = 1; // 重置页码
|
||||||
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => route.query.query,
|
() => route.query.query,
|
||||||
async (newQuery) => {
|
async (newQuery) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user