修改升级和404判断处理
This commit is contained in:
@@ -21,6 +21,7 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {
|
||||
this.getPrivacy();
|
||||
const user = wx.getStorageSync('user')
|
||||
if (!user || !user.id) {
|
||||
return;
|
||||
@@ -34,7 +35,7 @@ Page({
|
||||
wx.switchTab({
|
||||
url: '/pages/home/index',
|
||||
})
|
||||
this.getPrivacy();
|
||||
|
||||
},
|
||||
async getPrivacy() {
|
||||
const { code, message, data } = await getPrivaciList()
|
||||
|
Reference in New Issue
Block a user