perf: auto decide create in new page or current page in asset or permission

This commit is contained in:
ibuler
2024-01-15 19:29:04 +08:00
committed by 老广
parent 598020a89b
commit 6f3f66df73
5 changed files with 32 additions and 8 deletions

View File

@@ -167,6 +167,9 @@ export default {
},
async refresh() {
this.treeSearchValue = ''
if (this.treeSetting?.callback?.beforeRefresh) {
this.treeSetting.callback.beforeRefresh()
}
if (this.treeSetting?.callback?.refresh) {
await this.treeSetting.callback.refresh()
}