|
@@ -0,0 +1,43 @@
|
|
|
+import Vue from 'vue'
|
|
|
+import Vuex from 'vuex'
|
|
|
+import user from './model/user'
|
|
|
+Vue.use(Vuex)
|
|
|
+
|
|
|
+const store = new Vuex.Store({
|
|
|
+ state: {
|
|
|
+ baseURL:"https://yrh.liuniu946.com",
|
|
|
+
|
|
|
+ loginInterceptor:true,
|
|
|
+ urlFile:'/index',
|
|
|
+
|
|
|
+ weichatInfo:{},
|
|
|
+ weichatObj:'',
|
|
|
+
|
|
|
+
|
|
|
+ isShowIllegality:false,
|
|
|
+
|
|
|
+
|
|
|
+ isShowIllegality:true,
|
|
|
+
|
|
|
+ },
|
|
|
+ mutations: {
|
|
|
+
|
|
|
+ setWeiChatInfo(state, provider) {
|
|
|
+ state.weichatInfo = provider;
|
|
|
+ },
|
|
|
+
|
|
|
+ setWeiChatObj(state, provider) {
|
|
|
+ state.weichatObj = provider;
|
|
|
+ },
|
|
|
+
|
|
|
+ changeState(state, provider){
|
|
|
+ state.isShowIllegality = provider;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ modules:{
|
|
|
+ user
|
|
|
+ },
|
|
|
+ actions: {}
|
|
|
+})
|
|
|
+
|
|
|
+export default store
|