perf: router

This commit is contained in:
xiaoxian521
2022-01-04 17:28:36 +08:00
parent 07794d000c
commit 079a455181
6 changed files with 19 additions and 16 deletions

11
src/views/tabs/detail.vue Normal file
View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
import { useRoute } from "vue-router";
const route = useRoute();
const index = route.query?.id ?? -1;
</script>
<template>
<div>{{ index }} - 详情页内容在此</div>
</template>
<style lang="scss" scoped></style>