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 状态码 → 错误提示映射