<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { useAuthStore } from '@/stores/auth'
import { useUIStore } from '@/stores/ui'

onLaunch(() => {
  const authStore = useAuthStore()
  authStore.restore()
  const uiStore = useUIStore()
  uiStore.restore()
})

onShow(() => {
  const authStore = useAuthStore()
  authStore.restore()
})
</script>

<style lang="scss">
@import './styles/tokens.scss';
@import './styles/mixins.scss';
@import './styles/elder-mode.scss';

page {
  background-color: #F5F0EB;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #2D2A26;
  font-size: var(--tk-font-body);
  line-height: var(--tk-line-height);
}
</style>
