This commit is contained in:
Teo
2025-09-04 11:06:45 +08:00
parent 9d1f96309f
commit 910b24019e
83 changed files with 8390 additions and 834 deletions

View File

@ -23,12 +23,13 @@ const requestGo: RequestGo = (config: any) => {
});
};
requestGo.download = function (url: string, params: any, filename: string) {
requestGo.download = function (url: string, params: any, filename: string, method: 'post' | 'get' = 'post') {
return request({
url,
method: 'post',
method: method,
baseURL: BASE_GO_URL,
data: params,
data: method === 'post' ? params : undefined,
params: method === 'get' ? params : undefined,
headers: {
'Authorization': `Bearer ${$cache.local.get('goToken') || ''}`
},