diff --git a/store/index.js b/store/index.js index f37eed9..bffef98 100644 --- a/store/index.js +++ b/store/index.js @@ -65,6 +65,7 @@ const store = new Vuex.Store({ bottomNavHidden: false, // 底部导航是否隐藏,true:隐藏,false:显示 aiUnreadCount: 10, // AI未读消息数量 globalAIKefuConfig: null, // AI客服配置 + customerServiceType: 'ai', globalStoreConfig: null, // 门店配置 globalStoreInfo: null, // 门店信息 defaultStoreInfo: null, // 默认门店 @@ -159,6 +160,9 @@ const store = new Vuex.Store({ state.globalAIKefuConfig = value; uni.setStorageSync('globalAIKefuConfig', value); // 初始化数据调用 }, + setCustomerServiceType(state, type) { + state.customerServiceType = type; + }, setGlobalStoreConfig(state, value) { state.globalStoreConfig = value; uni.setStorageSync('globalStoreConfig', value); // 初始化数据调用 @@ -412,7 +416,7 @@ const store = new Vuex.Store({ }, // 生成主题颜色CSS变量 themeColorSet() { - // console.log('样式颜色设置...'); + console.log('样式颜色设置...'); let theme = this.state.themeStyle; if (!theme?.main_color || !theme?.aux_color) return; try { @@ -436,7 +440,7 @@ const store = new Vuex.Store({ } catch (e) { console.error('设置主题颜色失败', e); } - // console.log('themeColor => ', this.state.themeColor); + console.log('themeColor => ', this.state.themeColor); } } })