Browse Source

历史版本

“yueshang” 2 years ago
parent
commit
0adec819ce
1 changed files with 4 additions and 1 deletions
  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)