| 1234567891011121314151617181920212223242526272829303132333435 |
- <script setup lang="ts">
- import { onLaunch } from '@dcloudio/uni-app'
- import { useAuthStore } from './store/auth'
- import { configTheme } from './components/theme/ThemeDefine';
- const authStore = useAuthStore();
- onLaunch(() => {
- console.log('App Launch');
- uni.loadFontFace({
- global: true,
- family: "SongtiSCBlack",
- source: 'url("https://mncdn.wenlvti.net/assets/fonts/STSongti-SC-Black.woff")',
- })
- authStore.loadLoginState();
- })
- configTheme((theme) => {
- theme.colorConfigs.default.primary = '#d9492e';
- theme.colorConfigs.pressed.primary = '#882d1d';
- theme.colorConfigs.background.primary = '#ffcfc6';
- return theme;
- });
- </script>
- <style lang="scss">
- @use "@/common/scss/fonts.scss" as *;
- @use "@/common/scss/common.scss" as *;
- @use "@/common/scss/global/base.scss" as *;
- @use "@/components/index.scss" as *;
- </style>
|