fix(图表): 修复切换图表编辑背景,背景图不切换 #13687

This commit is contained in:
wangjiahao
2024-12-13 10:12:50 +08:00
committed by 王嘉豪
parent c485cfbaa9
commit 7075f40272

View File

@@ -324,7 +324,7 @@ const queryBackground = () => {
const init = () => {
state.commonBackground = deepCopy(props.commonBackgroundPop)
if (state.commonBackground['outerImage']) {
state.fileList.push({ url: imgUrlTrans(state.commonBackground['outerImage']) })
state.fileList = [{ url: imgUrlTrans(state.commonBackground['outerImage']) }]
} else {
state.fileList = []
}