修改升级和404判断处理

This commit is contained in:
2024-07-29 16:46:47 +08:00
parent 5b280a9e9d
commit 01e3d60b6c
2 changed files with 6 additions and 1 deletions

View File

@@ -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()