App.vue 597 B

123456789101112131415161718192021222324252627
  1. <script setup lang="ts">
  2. import { onLaunch } from '@dcloudio/uni-app'
  3. import { useAuthStore } from './store/auth'
  4. const authStore = useAuthStore();
  5. onLaunch(() => {
  6. console.log('App Launch');
  7. uni.loadFontFace({
  8. global: true,
  9. family: "SongtiSCBlack",
  10. source: 'url("https://mncdn.wenlvti.net/assets/fonts/STSongti-SC-Black.woff")',
  11. })
  12. authStore.loadLoginState();
  13. })
  14. </script>
  15. <style lang="scss">
  16. @use "@/common/scss/fonts.scss" as *;
  17. @use "@/common/scss/common.scss" as *;
  18. @use "@/common/scss/global/base.scss" as *;
  19. @import "@/uni_modules/uview-plus/index.scss";
  20. </style>