This commit is contained in:
haomingming
2023-04-04 09:04:29 +08:00
parent df9a526b7b
commit a1d691367e
32 changed files with 228 additions and 87 deletions
+1 -1
View File
@@ -44,13 +44,13 @@ Page({
},
logOut(){
console.log("退出登录");
let usertype = wx.getStorageSync('usertype');
wx.showModal({
title: '确认退出登录',
content: '退出登录后您需要重新登录',
success (res) {
if (res.confirm) {
console.log('用户点击确定')
let usertype = wx.getStorageSync('usertype');
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
wx.setStorageSync('user_id_'+usertype, "");
wx.setStorageSync('client_user_id_'+usertype, "");