修改退出登录逻辑,新增访问接口退出

This commit is contained in:
2024-05-30 17:21:30 +08:00
parent 7ac104d1b8
commit 60fcd5f8e2
3 changed files with 13 additions and 3 deletions

View File

@@ -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;