chore:ai智能客服可以正常对话
This commit is contained in:
@@ -60,7 +60,7 @@ const store = new Vuex.Store({
|
||||
cartChange: 0,
|
||||
bottomNavHidden: false, // 底部导航是否隐藏,true:隐藏,false:显示
|
||||
aiUnreadCount: 10, // AI未读消息数量
|
||||
globalAIAgentConfig: null, // AI客服配置
|
||||
globalAIKefuConfig: null, // AI客服配置
|
||||
globalStoreConfig: null, // 门店配置
|
||||
globalStoreInfo: null, // 门店信息
|
||||
defaultStoreInfo: null, // 默认门店
|
||||
@@ -140,9 +140,9 @@ const store = new Vuex.Store({
|
||||
setBottomNavHidden(state, value) {
|
||||
state.bottomNavHidden = value;
|
||||
},
|
||||
setGlobalAIAgentConfig(state, value) {
|
||||
state.globalAIAgentConfig = value;
|
||||
uni.setStorageSync('globalAIAgentConfig', value); // 初始化数据调用
|
||||
setglobalAIKefuConfig(state, value) {
|
||||
state.globalAIKefuConfig = value;
|
||||
uni.setStorageSync('globalAIKefuConfig', value); // 初始化数据调用
|
||||
},
|
||||
setGlobalStoreConfig(state, value) {
|
||||
state.globalStoreConfig = value;
|
||||
@@ -208,7 +208,7 @@ const store = new Vuex.Store({
|
||||
},
|
||||
getters: {
|
||||
// AI智能助手配置
|
||||
globalAIAgentConfig: state => state.globalAIAgentConfig,
|
||||
globalAIKefuConfig: state => state.globalAIKefuConfig,
|
||||
// AI未读消息数量
|
||||
aiUnreadCount: state => state.aiUnreadCount,
|
||||
},
|
||||
@@ -237,7 +237,7 @@ const store = new Vuex.Store({
|
||||
|
||||
this.commit('setMapConfig', data.map_config);
|
||||
|
||||
this.commit('setGlobalAIAgentConfig', data.ai_agent_config);
|
||||
this.commit('setglobalAIKefuConfig', data.ai_agent_config);
|
||||
|
||||
this.commit('setGlobalStoreConfig', data.store_config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user