无人机管理后台前端(已迁走)
shuishen
2025-12-08 f0d9c73af88fe8e34937ab039c58a12a1ac6e021
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>