index.js 435 B

123456789101112131415161718192021
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import user from './model/user'
  4. Vue.use(Vuex)
  5. const store = new Vuex.Store({
  6. state: {
  7. baseURL:'http://kpyk.liuniu946.com',//请求地址配置
  8. homeURL:'http://kpyk.liuniu946.com',//h5页面域名
  9. urlFile:'/index',//项目部署所在文件夹
  10. loginInterceptor:false,//是否打开强制登录
  11. },
  12. mutations: {
  13. },
  14. modules:{
  15. user
  16. },
  17. actions: {}
  18. })
  19. export default store