优化请求统一处理

This commit is contained in:
2026-01-08 11:05:56 +08:00
parent b8e8815cca
commit 6c08b3b878
5 changed files with 108 additions and 50 deletions

View File

@@ -14,23 +14,7 @@ import storageManage from '@/commons/utils/storageManage.js'
import infoBox from "@/commons/utils/infoBox.js"
import go from '@/commons/utils/go.js';
import { reject } from 'lodash';
// 设置node环境
// envConfig.changeEnv(storageManage.env('production'))
// 测试服
// #ifdef H5
let baseUrl = '/api/'
// #endif
// #ifndef H5
// let baseUrl = 'https://tapi.cashier.sxczgkj.cn/'
//预发布
// let baseUrl = 'https://pre-cashieradmin.sxczgkj.cn'
//正式
// let baseUrl = 'https://cashier.sxczgkj.com/'
let baseUrl = appConfig.env.JEEPAY_BASE_URL
// #endif
let baseUrl = appConfig.returnBaseUrl({apiType:'php'});
const loadingShowTime = 200
function getHeader(){