mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
23 lines
483 B
Vue
23 lines
483 B
Vue
<script setup lang="ts">
|
|
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app';
|
|
import { useUserStore } from '@/stores/modules/user';
|
|
|
|
onLaunch(() => {
|
|
console.log('App Launch');
|
|
});
|
|
onShow(() => {
|
|
const userStore = useUserStore();
|
|
userStore.initUserInfo();
|
|
console.log('App Show');
|
|
});
|
|
onHide(() => {
|
|
console.log('App Hide');
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import 'tailwindcss/base';
|
|
@import 'tailwindcss/utilities';
|
|
@import 'tailwindcss/components';
|
|
</style>
|