chore:后台点击不启用,H5和微信小程序不显示

This commit is contained in:
2026-02-05 16:34:33 +08:00
parent bf24746a7c
commit c5b57cedeb
2 changed files with 39 additions and 21 deletions

View File

@@ -76,6 +76,15 @@ export class CustomerService {
return config && typeof config === 'object' && config.type;
}
/**
* 检查是否有有效的客服配置(用于判断是否显示客服按钮)
* @returns {Boolean}
*/
hasValidKefuConfig() {
const config = this.getPlatformConfig();
return config && typeof config === 'object' && config.type && config.type !== 'none';
}
/**
* 验证客服配置完整性
* @returns {Object} 验证结果