Initial commit of the WeChat mini program, Express backend, and admin console. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
251 B
JavaScript
12 lines
251 B
JavaScript
const authUtil = require('./utils/auth')
|
|
|
|
App({
|
|
onLaunch(options) {
|
|
authUtil.captureSharer(options && options.query)
|
|
authUtil.ensureLogin().catch(() => {})
|
|
},
|
|
onShow(options) {
|
|
authUtil.captureSharer(options && options.query)
|
|
}
|
|
})
|