fix: AI智能客服首次使用显示fallbackWelcome的问题

1. 将 config.welcome 改为 config.welcome_info 匹配后端返回字段
2. 修复语言包路径错误:将 () 从 data() 移到 onLoad() 中
   - 原因:data() 执行时 getCurrentPages() 返回的是上一个页面
3. 添加调试日志用于排查 API 返回值
This commit is contained in:
2026-05-26 15:02:35 +08:00
parent bca90e959e
commit f36f9ce992
3 changed files with 9 additions and 2 deletions

View File

@@ -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;
}
},