src/utils/request.ts
@@ -6,7 +6,7 @@ // var jsonBig = require('json-bigint')({ "storeAsString": true }); // 配置新建一个 axios 实例 const service = axios.create({ baseURL: import.meta.env.VITE_API_URL as any, // baseURL: import.meta.env.VITE_API_URL as any, timeout: 50000, headers: { 'Content-Type': 'application/json' } }); @@ -14,7 +14,7 @@ service.interceptors.request.use( (config) => { for (let key in config.data) { if (config.data[key] == '') { if (config.data[key] == '' && config.data[key] !== 0) { config.data[key] = null; } }