Files
workspace/code/base-project/base-uniapp-main/src/App.vue
T
2025-10-10 16:46:03 +08:00

40 lines
559 B
Vue

<script setup lang="ts">
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'
import { useUserStore } from './store'
const userStore = useUserStore()
onLaunch(() => {
console.log('App Launch')
})
onShow(() => {
userStore.requireLogin()
console.log('App Show')
})
onHide(() => {
console.log('App Hide')
})
</script>
<style>
page {
background-color: #f7f7f8;
}
</style>
<style lang="scss">
swiper,
scroll-view {
flex: 1;
height: 100%;
overflow: hidden;
}
image {
width: 100%;
height: 100%;
vertical-align: middle;
}
</style>