三级菜单样式调整

This commit is contained in:
2025-12-02 13:54:13 +08:00
parent 0606a5a5c5
commit 6d07a69020
14 changed files with 58 additions and 32 deletions

View File

@@ -4,7 +4,7 @@ import { getDouyinToken, getToken } from "@/utils/auth";
// 创建axios实例
const service = axios.create({
baseURL: "https://newblockwlx.sxczgkj.cn/index.php/api/", // api 的 base_url
baseURL: import.meta.env.VITE_APP_API_PHP_URL + "/index.php/api/", // api 的 base_url
timeout: 1000 * 20, // 请求超时时间
});
@@ -15,6 +15,8 @@ service.interceptors.request.use(
config.headers["bausertoken"] = getDouyinToken();
}
config.headers["Content-Type"] = "application/json";
//根据当前环境返回不同值test和production环境返回不同值
config.headers["Server"] = process.env.NODE_ENV === "production" ? "production" : "test";
// 添加可取消请求配置
return config;
},