mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
del:删除详情页
This commit is contained in:
parent
c3095e2a44
commit
e2e5a8eca5
@ -1,26 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
|
|
||||||
import { ref } from 'vue'
|
|
||||||
import { useRoute } from 'vue-router'
|
|
||||||
|
|
||||||
const route = useRoute()
|
|
||||||
console.log(route,'route');
|
|
||||||
let currentId = ref(0) as any
|
|
||||||
currentId = route.params.id //路由跳转id
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<CustomHeader title="详情" leftIcon="arrow-left" leftText="" />
|
|
||||||
详情id为:{{currentId}}
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user