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;
|
if (widget.configReady) return;
|
||||||
await Promise.race([
|
await Promise.race([
|
||||||
window.__olonsChatWidgetConfigPromise,
|
window.__olonsChatWidgetConfigPromise,
|
||||||
new Promise<void>((_, reject) => window.setTimeout(() => reject(new Error('客服配置加载超时,请稍后重试')), 10000)),
|
new Promise<void>((_, reject) => window.setTimeout(() => reject(new Error('客服配置加载超时,请稍后重试')), 20000)),
|
||||||
]);
|
]);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
window.$message?.error(errorText(err));
|
window.$message?.error(errorText(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user