修改退出登录逻辑,新增访问接口退出
This commit is contained in:
@@ -20,6 +20,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'))
|
||||
let token = wx.getStorageSync('token');
|
||||
const result = wx.getAccountInfoSync();
|
||||
const { envVersion } = result.miniProgram;
|
||||
|
Reference in New Issue
Block a user