mirror of
https://github.com/lana-k/sqliteviz.git
synced 2026-03-24 23:16:18 +08:00
#63 migrate to Vue 3
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import { createStore } from 'vuex'
|
||||
import state from '@/store/state'
|
||||
import mutations from '@/store/mutations'
|
||||
import actions from '@/store/actions'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
export default createStore({
|
||||
state,
|
||||
mutations,
|
||||
actions
|
||||
|
||||
@@ -60,5 +60,8 @@ export default {
|
||||
},
|
||||
setPredefinedInquiriesLoaded (state, value) {
|
||||
state.predefinedInquiriesLoaded = value
|
||||
},
|
||||
setIsWorkspaceVisible (state, value) {
|
||||
state.isWorkspaceVisible = value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@ export default {
|
||||
predefinedInquiries: [],
|
||||
loadingPredefinedInquiries: false,
|
||||
predefinedInquiriesLoaded: false,
|
||||
db: null
|
||||
db: null,
|
||||
isWorkspaceVisible: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user