vue3版本初版上线 自测已可用
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import { createStore } from 'vuex'
|
||||
import VuexPersistence from 'vuex-persist'
|
||||
|
||||
import { user } from '@/store/module/user'
|
||||
import { router } from '@/store/module/router'
|
||||
import { dictionary } from '@/store/module/dictionary'
|
||||
Vue.use(Vuex)
|
||||
|
||||
const vuexLocal = new VuexPersistence({
|
||||
storage: window.localStorage,
|
||||
modules: ['user']
|
||||
})
|
||||
export const store = new Vuex.Store({
|
||||
|
||||
export const store = createStore({
|
||||
modules: {
|
||||
user,
|
||||
router,
|
||||
|
||||
Reference in New Issue
Block a user