修改
This commit is contained in:
parent
43981815c4
commit
00380b5dc1
@ -2,6 +2,9 @@ import baseurl from './baseurl.js'
|
|||||||
|
|
||||||
var request = function(config) {
|
var request = function(config) {
|
||||||
if (uni.getStorageSync('openid')) {
|
if (uni.getStorageSync('openid')) {
|
||||||
|
if (!config.header) {
|
||||||
|
config.header = {}
|
||||||
|
}
|
||||||
config.header.openid = uni.getStorageSync('openid')
|
config.header.openid = uni.getStorageSync('openid')
|
||||||
}
|
}
|
||||||
const urls = config.url.split('?')[0]
|
const urls = config.url.split('?')[0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user