mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
添加控制功能和页面逻辑
This commit is contained in:
@@ -42,7 +42,16 @@ Page({
|
||||
username: this.data.username
|
||||
},
|
||||
})
|
||||
if (res.data.code !== 200) {
|
||||
wx.showToast({
|
||||
title: '登录失败',
|
||||
});
|
||||
return;
|
||||
}
|
||||
wx.setStorageSync('token', res.data.token);
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user