提交修改
This commit is contained in:
@@ -2,10 +2,10 @@ const api = require('../../services/api')
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: { user: null, items: [], streaks: {}, loading: true },
|
||||
data: { user: null, items: [], streaks: {}, loading: true, themeMode: 'light' },
|
||||
onShow() {
|
||||
if (!app.globalData.token) { wx.reLaunch({ url: '/pages/login/index' }); return }
|
||||
this.setData({ user: app.globalData.user })
|
||||
this.setData({ user: app.globalData.user, themeMode: app.globalData.themeMode })
|
||||
this.loadItems()
|
||||
},
|
||||
onPullDownRefresh() { this.loadItems().then(() => wx.stopPullDownRefresh()) },
|
||||
|
||||
Reference in New Issue
Block a user