refactor(仪表板): 仪表板使用缓存后保存按钮默认可用

This commit is contained in:
wangjiahao 2022-08-25 15:50:32 +08:00
parent e71d6a6b90
commit ad34325bab
2 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,9 @@ export default {
state.changeTimes = 0
state.lastSaveSnapshotIndex = deepCopy(state.snapshotIndex)
},
recordChangeTimes(state) {
state.changeTimes++
},
recordStyleChange(state) {
state.styleChangeTimes++
}

View File

@ -783,6 +783,7 @@ export default {
setTimeout(() => {
if (useCache) {
_this.$store.commit('recordSnapshot', 'cache')
_this.$store.commit('recordChangeTimes' )
} else {
_this.$store.commit('refreshSaveStatus')
}