无人机管理后台前端(已迁走)
chenyao
2025-12-06 ce37640c757ccb9fb0ea02d6c538c9a844265557
src/App.vue
@@ -2,19 +2,9 @@
  <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>
</script>
<style>