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>