23 lines
555 B
Vue
Raw Normal View History

<script setup lang="ts">
import { onLaunch } from '@dcloudio/uni-app'
import { useAuthStore } from './store/auth'
onLaunch(() => {
const authStore = useAuthStore()
authStore.restore()
// 全局接收扫码参数
const scanId = (window as any).__SCAN_ABSTRACT_ID__
if (scanId) {
authStore.setScanId(scanId)
;(window as any).__SCAN_ABSTRACT_ID__ = undefined
}
})
</script>
<style>
page {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: #f5f5f5;
}
</style>