优化跳转登录逻辑,退出登录,修改收据复制错误
This commit is contained in:
@@ -19,8 +19,7 @@ const requestWithoutCookie = promisify(wx.request);
|
||||
|
||||
// 考虑了Cookie的请求
|
||||
const request = async function (options, config = {}) {
|
||||
console.log('请求参数', 'options', options, 'config', config)
|
||||
console.log('token', wx.getStorageSync('token'), 'user', wx.getStorageSync('user'))
|
||||
console.log('请求地址', options.url, "请求参数", options.data, 'config', config)
|
||||
let token = wx.getStorageSync('token');
|
||||
const result = wx.getAccountInfoSync();
|
||||
const { envVersion } = result.miniProgram;
|
||||
@@ -74,7 +73,6 @@ const request = async function (options, config = {}) {
|
||||
} catch(err) {
|
||||
alertInfo(err.errMsg)
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user