|
@@ -119,6 +119,10 @@ const store = new Vuex.Store({
|
|
|
uni.setStorageSync('source', payload);
|
|
|
state.source = payload;
|
|
|
},
|
|
|
+ SET_APPID(state, payload) {
|
|
|
+ // uni.setStorageSync('appId', payload);
|
|
|
+ state.appId = payload;
|
|
|
+ }
|
|
|
},
|
|
|
actions: {
|
|
|
async baseInit({ commit, dispatch }, { options, callback }) {
|
|
@@ -145,6 +149,7 @@ const store = new Vuex.Store({
|
|
|
isLogin = false,
|
|
|
accessToken = '',
|
|
|
source = '',
|
|
|
+ appId = ''
|
|
|
} = options;
|
|
|
// console.log(8181, options);
|
|
|
commit('SET_SOURCE', source)
|
|
@@ -158,6 +163,8 @@ const store = new Vuex.Store({
|
|
|
|
|
|
if ( source === 'CRM' ) {
|
|
|
commit('SET_CUST_TYPE_ID', custTypeId)
|
|
|
+ commit('SET_APPID', appId)
|
|
|
+
|
|
|
}
|
|
|
// 如果为 false,则表示当前用户是从小程序端未登录进入的
|
|
|
if (!isLogin) {
|