石墨仪设备 前端仓库
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.

28 lines
474 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. import { createWebSocket, sharedWsUrl } from "./services/socket";
  5. const router = useRouter();
  6. exceptionOb.subscribe(exp => {
  7. if (exp === "invalidToken") {
  8. router.replace("/login");
  9. }
  10. });
  11. </script>
  12. <template>
  13. <div>
  14. <router-view></router-view>
  15. </div>
  16. </template>
  17. <style>
  18. html,
  19. body {
  20. margin: 0;
  21. padding: 0;
  22. box-sizing: border-box;
  23. }
  24. </style>