From 0f06b48334014b9321cbad224cf547ae1a32ae8f Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 3 Feb 2026 17:24:49 +0800 Subject: [PATCH] fix: Fix the "token expired" error in DataEase embedded mode. --- frontend/src/utils/request.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/request.ts b/frontend/src/utils/request.ts index 49e48418..53403b2d 100644 --- a/frontend/src/utils/request.ts +++ b/frontend/src/utils/request.ts @@ -108,7 +108,8 @@ class HttpService { assistantStore.getCertificate ) { if ( - (config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) || + /* (config.method?.toLowerCase() === 'get' && /\/chat\/\d+$/.test(config.url || '')) || */ + /^\/chat/.test(config.url || '') || config.url?.includes('/system/assistant/ds') ) { await assistantStore.refreshCertificate()