App.vue 347 B

123456789101112131415161718
  1. <script setup lang="ts">
  2. import { onLaunch, onShow } from "@dcloudio/uni-app";
  3. import { useAuthStore } from "./stores/auth";
  4. onLaunch(() => {
  5. console.log("App Launch");
  6. const authStore = useAuthStore();
  7. authStore.checkLogin();
  8. });
  9. onShow(() => {
  10. console.log("App Show");
  11. });
  12. </script>
  13. <style>
  14. @import "@/styles/uni-icons.css";
  15. </style>