DataFront/pages/data.vue

17 lines
325 B
Vue

<script setup lang="ts">
import {useRoute,useRouter} from "vue-router";
const route = useRoute()
const router = useRouter()
//检查访问的数据库是否为空,重定向
if (route.params.WebName==undefined){
router.push("/data/all")
}
</script>
<template>
<NuxtPage></NuxtPage>
</template>
<style scoped>
</style>