ASEMiniProgram/app.js
2021-03-22 12:01:19 +08:00

23 lines
450 B
JavaScript

// app.js
import request from './utils/request.js'
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
},
globalData: {
userInfo: null,
userBaseInfo: null,
userDocument: null,
loginTime: null,
login: false,
loginCallback: null,
appID: 'wxb915ee2a665fcb6c',
baseURL: 'http://localhost:8088'
}
})