“yueshang” před 2 roky
rodič
revize
0adec819ce
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/components/historyList/index.vue

+ 4 - 1
src/components/historyList/index.vue

@@ -107,8 +107,11 @@ watch(
 );
 const treeData =ref([])
 watchEffect(() => {
-  treeData.value = props.fileUserTreeData.reverse();
+  if(props.fileUserTreeData.length>0){
+    treeData.value = props.fileUserTreeData.reverse();
   toRaw(treeData.value);
+  }
+
 });
 const getList=async()=>{
   console.log('page', pageNum.value)