From 9d893b4ed4a2b521e0922350dbe6803fc519debe Mon Sep 17 00:00:00 2001 From: liu <2302563948@qq.com> Date: Mon, 31 Aug 2026 15:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/index.tsx | 2 +- src/utils/request.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/product/index.tsx b/src/pages/product/index.tsx index 776abda..4308371 100644 --- a/src/pages/product/index.tsx +++ b/src/pages/product/index.tsx @@ -199,7 +199,7 @@ export default function ProductPage() { try { const res = await addItem(product.id, 1) handleRowSync(product.id, { cart_id: res.id, cart_quantity: res.quantity }) - Taro.showToast({ title: '已加入购物车', icon: 'success' }) + // Taro.showToast({ title: '已加入购物车', icon: 'success' }) } catch { } diff --git a/src/utils/request.ts b/src/utils/request.ts index 1093a8a..df6beb4 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -10,8 +10,8 @@ const LOGIN_PATH = '/pages/login/index' /** 默认请求超时(ms) */ const DEFAULT_TIMEOUT = 15000 /** 接口根地址(uploadFile 等原生请求同样使用) */ -export const BASE_URL = "http://localhost:8000/index.php" -// export const BASE_URL = "https://purchase.henanklkj.com/index.php" +// export const BASE_URL = "http://localhost:8000/index.php" +export const BASE_URL = "https://purchase.henanklkj.com/index.php" /** * HTTP 状态码 → 错误提示映射