This commit is contained in:
2024-04-18 15:11:38 +08:00
parent 43981815c4
commit 00380b5dc1

View File

@ -2,6 +2,9 @@ import baseurl from './baseurl.js'
var request = function(config) {
if (uni.getStorageSync('openid')) {
if (!config.header) {
config.header = {}
}
config.header.openid = uni.getStorageSync('openid')
}
const urls = config.url.split('?')[0]