三级菜单样式调整
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user