forked from github/dataease
refactor(仪表板): 仪表板使用缓存后保存按钮默认可用
This commit is contained in:
parent
e71d6a6b90
commit
ad34325bab
@ -64,6 +64,9 @@ export default {
|
||||
state.changeTimes = 0
|
||||
state.lastSaveSnapshotIndex = deepCopy(state.snapshotIndex)
|
||||
},
|
||||
recordChangeTimes(state) {
|
||||
state.changeTimes++
|
||||
},
|
||||
recordStyleChange(state) {
|
||||
state.styleChangeTimes++
|
||||
}
|
||||
|
@ -783,6 +783,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
if (useCache) {
|
||||
_this.$store.commit('recordSnapshot', 'cache')
|
||||
_this.$store.commit('recordChangeTimes' )
|
||||
} else {
|
||||
_this.$store.commit('refreshSaveStatus')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user