1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <template>
| <router-view />
| </template>
|
| <script setup>
|
| import {onMounted} from "vue";
| import { useRouter} from "vue-router";
| const router = useRouter()
| onMounted(()=>{
| const cdx = localStorage.getItem('cdx')
| console.log('cdx')
| if (cdx){
| localStorage.removeItem('cdx')
| setTimeout(() => router.push(cdx),5000)
| }
| })
| </script>
|
| <style>
| html,
| body,
| #app {
| width: 100%;
| height: 100%;
| }
| </style>
|
|