|
@@ -217,10 +217,12 @@ const onItemsPerPageChange = (v: number) => {
|
|
|
let treeData: any = []
|
|
let treeData: any = []
|
|
|
let treeAllData: any = []
|
|
let treeAllData: any = []
|
|
|
function query() {
|
|
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) {
|
|
function remote(id?: string) {
|