mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
feat(route): isMain用于判断子窗口
This commit is contained in:
14
src/views/t-post.vue
Normal file
14
src/views/t-post.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div>TEST {{ $route.meta.isMain }}</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
// 获取路由传参
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
// 获取路由参数
|
||||
const id = route.params.post_id;
|
||||
console.log(id);
|
||||
</script>
|
||||
<style lang="css"></style>
|
||||
Reference in New Issue
Block a user