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

25 lines
739 B

9 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,
position: state => state.app.position,
7 months ago
CAMERA: state => state.app.CAMERA,
WRITE_EXTERNAL_STORAGE: state => state.app.WRITE_EXTERNAL_STORAGE,
ACCESS_FINE_LOCATION: state => state.app.ACCESS_FINE_LOCATION,
mapping: state => state.app.mapping,
9 months ago
}
})