fix: AI智能客服首次使用显示fallbackWelcome的问题
1. 将 config.welcome 改为 config.welcome_info 匹配后端返回字段 2. 修复语言包路径错误:将 () 从 data() 移到 onLoad() 中 - 原因:data() 执行时 getCurrentPages() 返回的是上一个页面 3. 添加调试日志用于排查 API 返回值
This commit is contained in:
@@ -547,8 +547,10 @@ export default {
|
||||
...params,
|
||||
async: false,
|
||||
});
|
||||
console.log('[AI Service] getServiceConfig response:', JSON.stringify(response));
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.error('[AI Service] getServiceConfig error:', error);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user