无人机管理后台前端(已迁走)
chenyao
2025-09-17 78bf59d8e0106ccf2acdd5bc4e3a6e510e1e5cbf
src/App.vue
@@ -2,19 +2,10 @@
  <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 setup>
import { useDownloadWs } from '@/page/index/useDownloadWs';
useDownloadWs()
</script>
<style>