修复了验证码bug

This commit is contained in:
2025-08-09 22:30:47 +08:00
parent f871831cbc
commit 8a085da7dc
4 changed files with 12 additions and 6 deletions

View File

@ -33,6 +33,7 @@ Page({
icon: 'success'
})
wx.removeStorageSync('token')
wx.removeStorageSync('role')
setTimeout(() => {
wx.reLaunch({
url: '/pages/welcome/homePage/homePage',

View File

@ -67,7 +67,8 @@ Page({
Authorization: wx.getStorageSync('token')
},
data: {
templateString: phone
phoneNumber: phone,
userRole: wx.getStorageSync('role')
},
success: res => {
if (res.data.code === 1) {