This commit is contained in:
jeremygan2021
2026-02-11 01:31:21 +08:00
parent 61afc52ac2
commit 2d090cd0f4
97 changed files with 3661 additions and 4 deletions

21
miniprogram/src/app.ts Normal file
View File

@@ -0,0 +1,21 @@
import { PropsWithChildren } from 'react'
import { useLaunch } from '@tarojs/taro'
import { login } from './utils/request'
import './app.scss'
function App({ children }: PropsWithChildren<any>) {
useLaunch(() => {
console.log('App launched.')
// Auto login
login().then(res => {
console.log('Logged in as:', res?.nickname)
}).catch(err => {
console.log('Auto login failed', err)
})
})
return children
}
export default App