This commit is contained in:
Mrx
2026-05-21 14:51:06 +08:00
commit b428984f71
149 changed files with 35922 additions and 0 deletions

22
src/App.vue Normal file
View File

@@ -0,0 +1,22 @@
<script setup>
import { onLaunch } from '@dcloudio/uni-app'
// #ifdef MP-WEIXIN
import { hasToken } from '@/utils/session'
import { tryWxMiniProgramAuth } from '@/utils/wxMiniAuth'
// #endif
onLaunch(async () => {
// #ifdef MP-WEIXIN
if (hasToken())
return
try {
await tryWxMiniProgramAuth({ silent: true })
}
catch (e) {
console.warn('[app] wx silent login', e)
}
// #endif
})
</script>
<style></style>