Merge pull request #10795 from dataease/pr@dev-v2@fix_save-button

fix(仪表板、数据大屏): 修复外部参数跳转设置保存后,仪表板保存按钮未处于激活状态问题
This commit is contained in:
王嘉豪 2024-07-04 13:21:18 +08:00 committed by GitHub
commit 9d7f5116ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,11 +187,13 @@ import checkArrayRepeat from '@/utils/check'
import HandleMore from '@/components/handle-more/src/HandleMore.vue'
import { fieldType } from '@/utils/attr'
import EmptyBackground from '@/components/empty-background/src/EmptyBackground.vue'
import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot'
const dvMainStore = dvMainStoreWithOut()
const { dvInfo, componentData } = storeToRefs(dvMainStore)
const outerParamsInfoTree = ref(null)
const { t } = useI18n()
const curEditDataId = ref(null)
const snapshotStore = snapshotStoreWithOut()
const state = reactive({
loading: false,
@ -319,6 +321,7 @@ const save = () => {
type: 'success',
showClose: true
})
snapshotStore.recordSnapshotCache('renderChart')
cancel()
})
}