From c599e1d29df46da860761b89fc8268ebe6b4b28c Mon Sep 17 00:00:00 2001 From: luobinjie Date: Mon, 12 Jan 2026 16:35:50 +0800 Subject: [PATCH] =?UTF-8?q?ai=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/api.js b/src/api/api.js index bd113e6..4684a61 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -82,10 +82,11 @@ export async function fetchStream(url, params = {}, onChunk = (chunk) => {}) { showFullScreenLoading(); try { const token = window.sessionStorage.getItem('token'); + let tokentype = window.sessionStorage.getItem("tokentype"); const headers = { 'Content-Type': 'application/json' }; - if (token) headers['Authorization'] = `Bearer ${token}`; + if (token) headers['Authorization'] = `${tokentype} ${token}`; const resp = await fetch(fullUrl, { method: 'POST',