Forráskód Böngészése

修复table组件查询bug

Yue 2 éve
szülő
commit
28b2420ff5
1 módosított fájl, 6 hozzáadás és 4 törlés
  1. 6 4
      UI/VA.Vue_V1.0/src/components/table/VbDataTable.vue

+ 6 - 4
UI/VA.Vue_V1.0/src/components/table/VbDataTable.vue

@@ -217,10 +217,12 @@ const onItemsPerPageChange = (v: number) => {
 let treeData: any = []
 let treeAllData: any = []
 function query() {
-  remoteData.value = []
-  treeData = []
-  treeAllData = []
-  remote(props.isLazy ? props.rootId : undefined)
+  if (props.remoteFun || props.url) {
+    remoteData.value = []
+    treeData = []
+    treeAllData = []
+    remote(props.isLazy ? props.rootId : undefined)
+  }
 }
 
 function remote(id?: string) {