修改工作台

This commit is contained in:
2025-10-10 14:10:50 +08:00
parent 612dd4eac1
commit 5e2b2dcfda
6 changed files with 22 additions and 10 deletions

View File

@@ -58,12 +58,13 @@ Page({
const { token, ...user } = data
wx.setStorageSync('user', user)
wx.setStorageSync('token', data?.token)
// if (user.workStatus) {
// wx.redirectTo({
// url: '/pages/workBenchNew/index',
// })
// return
// }
console.log("user.workStatus", user.workStatus)
if (user.workStatus) {
wx.redirectTo({
url: '/pages/workBenchNew/index',
})
return
}
wx.switchTab({
url: '/pages/home/index',
})