fix(视图): 修复切换图库后开启视图刷新导致字段消失的问题

This commit is contained in:
wangjiahao 2022-12-26 12:57:10 +08:00
parent 132d2371c2
commit 5746652b0f

View File

@ -2359,14 +2359,14 @@ export default {
delete view.data
return view
},
refreshAttrChange(switchType = false, switchRender = false) {
refreshAttrChange() {
if (this.view.refreshTime > 3600) {
this.view.refreshTime = 3600
} else if (this.view.refreshTime < 1) {
this.view.refreshTime = 1
}
this.changeEditStatus(true)
const view = this.buildParam(true, 'chart', false, switchType, switchRender)
const view = this.buildParam(true, 'chart', false)
if (!view) return
viewEditSave(this.panelInfo.id, view)
},