19 lines
422 B
Vue
19 lines
422 B
Vue
<script setup lang="ts">
|
|
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
|
|
import { useAuthStore } from '@/state/modules/auth';
|
|
onLaunch(() => {
|
|
console.log('App Launch');
|
|
});
|
|
onShow(() => {
|
|
const authStore = useAuthStore();
|
|
authStore.initToken();
|
|
console.log('App Show');
|
|
});
|
|
onHide(() => {
|
|
console.log('App Hide');
|
|
});
|
|
</script>
|
|
<style lang="scss">
|
|
@import '@/assets/main.scss';
|
|
</style>
|