fix: 修复Load From DB 切换类型时未清空DataSource问题
This commit is contained in:
parent
a538ae66b0
commit
834de12b96
|
@ -222,12 +222,14 @@ export default {
|
||||||
|
|
||||||
// 显示弹窗
|
// 显示弹窗
|
||||||
show(loadType) {
|
show(loadType) {
|
||||||
|
if (loadType !== this.loadType) {
|
||||||
|
this.dataSource = []
|
||||||
|
this.ipagination.total = 0
|
||||||
|
}
|
||||||
|
|
||||||
this.loadType = loadType
|
this.loadType = loadType
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.columns = cloneDeep(columns)
|
this.columns = cloneDeep(columns)
|
||||||
if (loadType !== this.loadType) {
|
|
||||||
this.dataSource = []
|
|
||||||
}
|
|
||||||
|
|
||||||
if (loadType != 'db') {
|
if (loadType != 'db') {
|
||||||
this.columns.splice(10, 1)
|
this.columns.splice(10, 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user