You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
640 B
27 lines
640 B
import {title} from "@/config/host"; |
|
import { createStore } from 'vuex' |
|
const store = createStore({ |
|
state () { |
|
return { |
|
footCheck:'home', |
|
title:title, |
|
userInfo:{}, |
|
userExtends:{}, |
|
} |
|
}, |
|
mutations: { |
|
footCheck (state,check) { |
|
state.footCheck = check |
|
}, |
|
title (state,title) { |
|
state.title = title |
|
}, |
|
userInfo (state,userInfo) { |
|
state.userInfo = userInfo |
|
}, |
|
userExtends (state,userExtends) { |
|
state.userExtends = userExtends |
|
}, |
|
} |
|
}) |
|
export default store; |