From fcde3571cb59820ec6ebdb5bea4a99ec5a6c952f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 08 十月 2024 09:48:04 +0800
Subject: [PATCH] ll
---
h5_meeting/utils/service.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/h5_meeting/utils/service.js b/h5_meeting/utils/service.js
index 0814f6f..6d8ff54 100644
--- a/h5_meeting/utils/service.js
+++ b/h5_meeting/utils/service.js
@@ -2,7 +2,7 @@
export const http = function (options) {
{
return new Promise((resolve, reject) => {
- let token = uni.getStorageSync('token') || ''
+ // let token = uni.getStorageSync('token') || ''
// 鍦ㄧ櫥褰曠殑鏃跺�欓渶瑕佸偍瀛� token uni.setStorageSync("authorization","杩欓噷鏄櫥褰曡幏鍙栫殑token鍊�")
// uni.showLoading({
@@ -12,13 +12,14 @@
title: '鍔犺浇涓�',
mask: true
})
+ const param = uni.getStorageSync('param') || {}
uni.request({
- url: baseUrl + options.url,
+ url: (param.baseUrl || baseUrl) + options.url,
data: options.data || {},
method: options.method || 'GET',
header: options.header || {
// 鏍规嵁瀹為檯鎺ュ彛璁捐 key 鍙� token 鎴栬�� authorization
- dm_user_token: token,
+ // dm_user_token: token,
"content-type": 'application/json;charset=UTF-8'
},
success: (res) => {
--
Gitblit v1.9.3