Risistemazione: Signup...
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import Vuex, { Store } from 'vuex'
|
||||
|
||||
|
||||
import { IUserState, IGlobState } from 'model'
|
||||
import {Route} from 'vue-router'
|
||||
|
||||
Vue.use(Vuex)
|
||||
import { IGlobState } from 'model'
|
||||
import { Route } from 'vue-router'
|
||||
import { getStoreBuilder } from 'vuex-typex'
|
||||
|
||||
|
||||
export interface RootState {
|
||||
@@ -13,11 +11,26 @@ export interface RootState {
|
||||
route: Route
|
||||
}
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export const DebugMode = true
|
||||
|
||||
export * from './Modules'
|
||||
export {default as EventBus} from './EventBus'
|
||||
export {default as Api} from './Api'
|
||||
|
||||
export default new Vuex.Store<RootState>({
|
||||
})
|
||||
export { default as EventBus } from './EventBus'
|
||||
export { default as Api } from './Api'
|
||||
|
||||
const store: Store<RootState> = getStoreBuilder<RootState>().vuexStore()
|
||||
export default store
|
||||
|
||||
// export function createStore() {
|
||||
// const store: Store<RootState> = storeBuilder.vuexStore({
|
||||
// strict: DebugMode
|
||||
// })
|
||||
//
|
||||
// return store
|
||||
//
|
||||
// }
|
||||
// export default new Vuex.Store<RootState>({
|
||||
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user