登录页不判断用户登录跳转首页逻辑
This commit is contained in:
parent
8f83197c02
commit
7ac104d1b8
|
@ -20,19 +20,19 @@ Page({
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad() {
|
onLoad() {
|
||||||
const user = wx.getStorageSync('user')
|
// const user = wx.getStorageSync('user')
|
||||||
if (!user || !user.id) {
|
// if (!user || !user.id) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
// if (user.status === 0 || user.status === 2) {
|
// if (user.status === 0 || user.status === 2) {
|
||||||
// wx.redirectTo({
|
// wx.redirectTo({
|
||||||
// url: '/pages/waitApprove/index',
|
// url: '/pages/waitApprove/index',
|
||||||
// })
|
// })
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
wx.switchTab({
|
// wx.switchTab({
|
||||||
url: '/pages/home/index',
|
// url: '/pages/home/index',
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user