无人机管理后台前端(已迁走)
xiebin
2025-04-19 06aa3a5fa7ed47e006b471d766bb06271d19dbb3
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>