mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-08 02:58:54 +08:00
fix state updating
This commit is contained in:
@@ -95,9 +95,9 @@ export default new Vuex.Store({
|
||||
|
||||
Vue.set(state.tabs, index, tab)
|
||||
},
|
||||
updateTabState (state, { index, newValue }) {
|
||||
updateTabState (state, { index, isUnsaved }) {
|
||||
const tab = state.tabs[index]
|
||||
tab.isUnsaved = newValue
|
||||
tab.isUnsaved = isUnsaved
|
||||
Vue.set(state.tabs, index, tab)
|
||||
},
|
||||
deleteTab (state, index) {
|
||||
|
||||
Reference in New Issue
Block a user