mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
perf: router
This commit is contained in:
11
src/views/tabs/detail.vue
Normal file
11
src/views/tabs/detail.vue
Normal 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>
|
||||
Reference in New Issue
Block a user