@glodon-aiot/chat-app-sdk 0.0.1-alpha.15 → 0.0.1-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.esm.js +3 -3
- package/libs/cn/index.js +1 -1
- package/package.json +1 -1
package/es/index.esm.js
CHANGED
|
@@ -434253,7 +434253,7 @@ class WebChatClient {
|
|
|
434253
434253
|
WebChatClient.clients = WebChatClient.clients.filter((c)=>c !== this);
|
|
434254
434254
|
}
|
|
434255
434255
|
constructor(options){
|
|
434256
|
-
var
|
|
434256
|
+
var _this_options, _this_options1;
|
|
434257
434257
|
client_define_property(this, "root", void 0);
|
|
434258
434258
|
client_define_property(this, "defaultRoot", void 0);
|
|
434259
434259
|
client_define_property(this, "containerEl", void 0); // 新增:保存容器元素
|
|
@@ -434269,8 +434269,8 @@ class WebChatClient {
|
|
|
434269
434269
|
this.options = client_formatOptions(options);
|
|
434270
434270
|
this.authClient = new AuthClient(options);
|
|
434271
434271
|
// 计算最终使用的 API 地址
|
|
434272
|
-
const env = (
|
|
434273
|
-
this.apiUrl = getApiUrl((
|
|
434272
|
+
const env = (_this_options = this.options) === null || _this_options === void 0 ? void 0 : _this_options.env;
|
|
434273
|
+
this.apiUrl = getApiUrl((_this_options1 = this.options) === null || _this_options1 === void 0 ? void 0 : _this_options1.apiUrl, env);
|
|
434274
434274
|
console.info('WebChatClient using API URL:', this.apiUrl, env);
|
|
434275
434275
|
// 👇 新增:处理 getContainer
|
|
434276
434276
|
const { getContainer, mode = 'float' } = this.options;
|