From 81add3774c7d98623ff56313c1dcbd4069494935 Mon Sep 17 00:00:00 2001 From: Agent Date: Sun, 29 Mar 2026 15:27:24 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DPOST=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=8F=E5=88=97=E5=8C=96=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E7=94=A8JSON.stringify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index 8c3c02f..0bd4197 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -104,9 +104,9 @@ export default { uni.request({ url: `${import.meta.env.VITE_API_BASE_URL}/products/categories/${categoryId}/attributes`, method: 'POST', - data: attrs, + data: JSON.stringify(attrs), header: { - 'Content-Type': 'application/json', + 'Content-Type': 'text/plain', 'Authorization': token ? `Bearer ${token}` : '', 'X-User-Role': role },