Skip to content

Commit 1a01163

Browse files
fix: Fix the "token expired" error in DataEase embedded mode.
1 parent b6b35ec commit 1a01163

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/utils/request.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ class HttpService {
108108
assistantStore.getCertificate
109109
) {
110110
if (
111-
(config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) ||
111+
/* (config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) || */
112+
/^\/chat/.test(config.url || '') ||
112113
config.url?.includes('/system/assistant/ds')
113114
) {
114115
await assistantStore.refreshCertificate()

0 commit comments

Comments
 (0)