<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { useUserStore } from '@/store/index'
import { useLocaleStore } from '@/store/locale'

const userStore = useUserStore()
const localeStore = useLocaleStore()

onLaunch(() => {
  // 初始化语言设置
  localeStore.initLocale()
})

onShow(() => {
  // App显示
})

onHide(() => {
  // App隐藏
})
</script>

<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import '@/uni.scss';

page {
  background-color: #f8f8f8;
}
</style>
