electricity_bill_calc_wx/app.js
2024-02-01 15:34:50 +08:00

16 lines
267 B
JavaScript

import { checkUpgrade, getConfigByEnv } from "./utils/index"
// app.js
App({
onShow() {
checkUpgrade();
},
onLaunch() {
const { api } = getConfigByEnv();
this.globalData = { ...this.globalData, api, }
},
globalData: {
userInfo: null
}
})