diff --git a/src/components/userAchi/tua-series.vue b/src/components/userAchi/tua-series.vue index ae6ce0cd..dbee204f 100644 --- a/src/components/userAchi/tua-series.vue +++ b/src/components/userAchi/tua-series.vue @@ -41,7 +41,7 @@ onMounted(async () => { }); watch( - () => props.cur, + () => props.uid, async () => await refreshOverview(), ); diff --git a/src/pages/common/Achievements.vue b/src/pages/common/Achievements.vue index 410a2f3b..7a073088 100644 --- a/src/pages/common/Achievements.vue +++ b/src/pages/common/Achievements.vue @@ -57,7 +57,7 @@ import { path } from "@tauri-apps/api"; import { UnlistenFn, listen } from "@tauri-apps/api/event"; import { open, save } from "@tauri-apps/plugin-dialog"; import { writeTextFile } from "@tauri-apps/plugin-fs"; -import { onMounted, ref, computed, onUnmounted } from "vue"; +import { onMounted, ref, watch, computed, onUnmounted } from "vue"; import { useRoute, useRouter } from "vue-router"; import showConfirm from "../../components/func/confirm.js"; @@ -116,6 +116,11 @@ onMounted(async () => { achiListener = await listen("updateAchi", async () => await refreshOverview()); }); +watch( + () => uidCur, + async () => await refreshOverview(), +); + onUnmounted(async () => { if (achiListener !== null) { achiListener();