我的页面
This commit is contained in:
@@ -10,7 +10,7 @@ let baseUrl = 'http://10.0.1.9:8080'
|
||||
// let baseUrl = 'http://localhost:8080'
|
||||
const http = (method, url, data, header= headerDefault) => {
|
||||
let Authorization = wx.getStorageSync(TokenKey) ? wx.getStorageSync(TokenKey) : '';
|
||||
header[TokenKey] = Authorization == '' ? '' : JSON.parse(Authorization)
|
||||
header[TokenKey] = Authorization == '' ? '' : Authorization
|
||||
return new Promise((resolve, reject) => {
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
|
||||
Reference in New Issue
Block a user