ソースを参照

🎨 优化细节

快乐的梦鱼 2 週間 前
コミット
4a7f52883d
共有1 個のファイルを変更した6 個の追加2 個の削除を含む
  1. 6 2
      src/pages/admin.vue

+ 6 - 2
src/pages/admin.vue

@@ -219,8 +219,12 @@ onMounted(() => {
   }
 });
 
-watch(() => authStore.userId, () => {
-  listRef.value?.reload();
+watch(() => authStore.userId, (newV) => {
+  if (newV) {
+    setTimeout(() => {
+      listRef.value?.reload();
+    }, 1000);
+  }
 });
 
 const { variable: lastValueCategory } = useMemorizeVar('categoryLastSelectValue', 0);