石墨仪设备 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
407 B

6 months ago
6 months ago
6 months ago
6 months ago
  1. <script setup lang="ts">
  2. import { useRouter } from "vue-router";
  3. import { exceptionOb } from "./services/httpRequest";
  4. const router = useRouter();
  5. exceptionOb.subscribe(exp => {
  6. if (exp === "invalidToken") {
  7. router.replace("/login");
  8. }
  9. });
  10. </script>
  11. <template>
  12. <div>
  13. <router-view></router-view>
  14. </div>
  15. </template>
  16. <style>
  17. html,
  18. body {
  19. margin: 0;
  20. padding: 0;
  21. box-sizing: border-box;
  22. }
  23. </style>