From 1dd22ddb54068f722897ca42c79099cab0cb1c15 Mon Sep 17 00:00:00 2001 From: wzz <1144797966@qq.com> Date: Mon, 5 Aug 2024 09:14:33 +0800 Subject: [PATCH] 1 --- framework/11-api.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/framework/11-api.js b/framework/11-api.js index 8045d8b..4a5f6e5 100644 --- a/framework/11-api.js +++ b/framework/11-api.js @@ -38,7 +38,8 @@ async function request(options) { }) } options.header = { - // userId: uni.getStorageSync('userId'), + userId: uni.getStorageSync('userId'), + minitype:uni.getStorageSync('Type'), 'content-type': 'application/json' } let res = await uni.pro.request(options) @@ -80,17 +81,17 @@ async function request(options) { } } else { if (!options.toast) { - uni.showToast({ - title: res.message || res.msg, - icon: "none", - success() { - setTimeout(res => { - // if (options.toast) { - uni.hideLoading() - // } - }, 2000) - } - }) + // uni.showToast({ + // title: res.message || res.msg, + // icon: "none", + // success() { + // setTimeout(res => { + // // if (options.toast) { + // uni.hideLoading() + // // } + // }, 2000) + // } + // }) } return res