feat(projects): 多页签绑定路由

This commit is contained in:
Soybean
2021-09-17 19:50:24 +08:00
parent eec0b36f59
commit f29bc05dd9
13 changed files with 195 additions and 65 deletions

View File

@ -0,0 +1,18 @@
<template>
<div></div>
</template>
<script lang="ts" setup>
import { useRoute, useRouter } from 'vue-router';
const { query } = useRoute();
const router = useRouter();
function init() {
const redirect = (query.redirectUrl as string) || '/';
router.replace(redirect);
}
init();
</script>
<style scoped></style>