fix: 修复Load From DB 切换类型时未清空DataSource问题

This commit is contained in:
Xu Zhimeng 2023-12-12 10:40:06 +08:00
parent a538ae66b0
commit 834de12b96

View File

@ -222,12 +222,14 @@ export default {
//
show(loadType) {
if (loadType !== this.loadType) {
this.dataSource = []
this.ipagination.total = 0
}
this.loadType = loadType
this.visible = true
this.columns = cloneDeep(columns)
if (loadType !== this.loadType) {
this.dataSource = []
}
if (loadType != 'db') {
this.columns.splice(10, 1)