快乐的梦鱼 недель назад: 2
Родитель
Сommit
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);