diff --git a/src/layout/AppLayout.vue b/src/layout/AppLayout.vue
index f1041e0..1eb9dea 100644
--- a/src/layout/AppLayout.vue
+++ b/src/layout/AppLayout.vue
@@ -12,12 +12,12 @@
-
+
diff --git a/src/views/list/index.vue b/src/views/list/index.vue
index d62d564..4ffe5e1 100644
--- a/src/views/list/index.vue
+++ b/src/views/list/index.vue
@@ -43,12 +43,14 @@ if (route.query.type) {
watch(
() => route.query,
async newParams => {
- const params = {
- tag: newParams.type || '',
- limit: 30,
- before: 0
+ if(newParams.type){
+ const params = {
+ tag: newParams.type || '',
+ limit: 30,
+ before: 0
+ }
+ loadList(newParams.type);
}
- loadList(newParams.type);
}
)
diff --git a/src/views/user/index.vue b/src/views/user/index.vue
index 2976b85..f01e819 100644
--- a/src/views/user/index.vue
+++ b/src/views/user/index.vue
@@ -33,11 +33,13 @@ const loadPage = async () => {
const { data: recordData } = await getUserRecord(user.userId)
recordList.value = recordData.allData
-
-
}
-loadPage()
+watch(() => router.currentRoute.value, (to) => {
+ if (to.path === "/user") {
+ loadPage()
+ }
+})
const isShowList = ref(false)
const list = ref()