部分逻辑修正

This commit is contained in:
yanghang
2025-07-04 14:35:11 +08:00
parent 32be7fbfb7
commit 74fbe565a9
4 changed files with 77 additions and 6 deletions
+3 -2
View File
@@ -51,7 +51,8 @@ export default function request({
suppressErrors,
toastErrors,
header = {},
timeout = 6000
timeout = 6000,
baseUrl = ''
}) {
const base_url = get_base_url(url);
@@ -67,7 +68,7 @@ export default function request({
let that = this
return new Promise((resolve, reject) => {
uni.request({
url: `${base_url}${url}`,
url: `${baseUrl || base_url}${url}`,
data: data,
method: method,
header: headers_base,