This commit is contained in:
2026-02-05 10:45:02 +08:00
parent 29baa2f786
commit 42f62d9cd6
6 changed files with 20 additions and 3 deletions

View File

@@ -1,11 +1,14 @@
<template>
<div class="test">
<p>老八秘制小汉堡</p>
<p>老八秘制小汉堡 - {{ id }}</p>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const id = computed(() => route.params.id)
</script>
<style lang="less" scoped>