fix: extend customer service config timeout
Deploy olons-server production / deploy (push) Successful in 1m52s
Deploy olons-server production / deploy (push) Successful in 1m52s
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
if (widget.configReady) return;
|
||||
await Promise.race([
|
||||
window.__olonsChatWidgetConfigPromise,
|
||||
new Promise<void>((_, reject) => window.setTimeout(() => reject(new Error('客服配置加载超时,请稍后重试')), 10000)),
|
||||
new Promise<void>((_, reject) => window.setTimeout(() => reject(new Error('客服配置加载超时,请稍后重试')), 20000)),
|
||||
]);
|
||||
} catch (err) {
|
||||
window.$message?.error(errorText(err));
|
||||
|
||||
Reference in New Issue
Block a user