fix(customer-service): 客服 chatUrl 在小程序也存储;空值兜底提示(test-0415 反馈6-2)
- 旧版 SET_CHATURL 套了 #ifdef H5 || APP-PLUS,小程序拿不到 chatUrl - wxChatService 在 chatUrl 为空时弹 toast 提示「客服暂未配置」,避免跳到空白 web 页 - chatConfig 缓存为 null 时回退默认值,防止模板 v-if 取属性报错 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -548,10 +548,9 @@
|
||||
let imgHost = res.data.logoUrl.split('crmebimage')[0];
|
||||
that.imgHost = imgHost;
|
||||
that.$Cache.set('imgHost', imgHost + '/');
|
||||
// #ifdef H5 || APP-PLUS
|
||||
that.$store.commit("SET_CHATURL", res.data.yzfUrl);
|
||||
Cache.set('chatUrl', res.data.yzfUrl);
|
||||
// #endif
|
||||
// test-0415 反馈6-2:客服 chatUrl 在所有端均缓存(旧版仅 H5/APP-PLUS 设置,小程序客服按钮跳空白页)
|
||||
that.$store.commit("SET_CHATURL", res.data.yzfUrl || '');
|
||||
Cache.set('chatUrl', res.data.yzfUrl || '');
|
||||
that.$Cache.setItem({
|
||||
name: 'categoryConfig',
|
||||
value: {
|
||||
|
||||
Reference in New Issue
Block a user