'颜色尺码价格联动'

This commit is contained in:
2026-08-22 19:05:26 +08:00
parent c3b6af07c9
commit b190fba0f3
39 changed files with 2434 additions and 2997 deletions
+4 -2
View File
@@ -11,14 +11,16 @@
*/
// 基础路径:修改此处即可切换后端地址
const BASE_URL = 'http://192.168.124.137:3001';
const BASE_URL = 'https://official.inkreach.cc/api/';
export { BASE_URL };
// 默认配置
const TIMEOUT = 30000;
const DEFAULT_HEADER = { 'Content-Type': 'application/json' };
// 统一拼装 URL:完整地址直接返回,否则 BASE_URL + path
function buildUrl(url) {
// 图片/静态资源路径也可直接调用,得到完整可访问地址
export function buildUrl(url) {
if (!url) return '';
if (/^https?:\/\//i.test(url)) return url;
const base = BASE_URL.replace(/\/+$/, '');