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.
zhishifufei_uniapp/store/index.js

20 lines
462 B

10 months ago
import Vue from 'vue'
import Vuex from 'vuex'
import app from "@/store/modules/app";
import HTTP_REQUEST_URL from "@/config/prod";
Vue.use(Vuex);
export default new Vuex.Store({
modules: {
app,
HTTP_REQUEST_URL
},
getters: {
isLogin: state => state.app.isLogin,
userInfo: state => state.app.userInfo,
rootFontSize: state => state.app.rootFontSize,
token: state => state.app.token,
}
})