<script>
import { useUserStore } from './store/user'

export default {
  onLaunch() {
    const userStore = useUserStore()
    if (!userStore.isLoggedIn()) {
      uni.reLaunch({ url: '/pages/login/index' })
    }
  }
}
</script>

<style>
page {
  background-color: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333333;
}
</style>
