提交修改
This commit is contained in:
@@ -2,7 +2,10 @@ const api = require('../../services/api')
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
data: { phone: '', loading: false, error: '' },
|
||||
data: { phone: '', loading: false, error: '', themeMode: 'light' },
|
||||
onShow() {
|
||||
this.setData({ themeMode: app.globalData.themeMode })
|
||||
},
|
||||
onLoad() {
|
||||
if (app.globalData.token) wx.reLaunch({ url: '/pages/index/index' })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user