“yueshang” 2 rokov pred
rodič
commit
0adec819ce
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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)