使用Pinia代替Vuex进行数据存储
This commit is contained in:
@ -1,21 +1,3 @@
|
||||
import { createStore } from 'vuex'
|
||||
import app from './modules/app'
|
||||
import user from './modules/user'
|
||||
import tagsView from './modules/tagsView'
|
||||
import permission from './modules/permission'
|
||||
import settings from './modules/settings'
|
||||
import getters from './getters'
|
||||
|
||||
const store = createStore({
|
||||
modules: {
|
||||
app,
|
||||
user,
|
||||
tagsView,
|
||||
permission,
|
||||
settings
|
||||
},
|
||||
getters
|
||||
});
|
||||
|
||||
const store = createPinia()
|
||||
|
||||
export default store
|
||||
Reference in New Issue
Block a user