index.vue 420 B

1234567891011121314151617181920212223
  1. <template>
  2. <view class="launch-page" />
  3. </template>
  4. <script setup>
  5. import { onLoad } from '@dcloudio/uni-app'
  6. import { userToken } from '@/composables/config'
  7. onLoad(() => {
  8. if (!userToken.value) {
  9. uni.reLaunch({ url: '/pages/login/index' })
  10. } else {
  11. uni.reLaunch({ url: '/pages/customer/index' })
  12. }
  13. })
  14. </script>
  15. <style scoped>
  16. .launch-page {
  17. min-height: 100vh;
  18. background-color: #fff;
  19. }
  20. </style>