feat(route): isMain用于判断子窗口

This commit is contained in:
BTMuli
2023-03-29 19:32:06 +08:00
parent 8e2340bc42
commit 747d80fa18
3 changed files with 72 additions and 12 deletions

14
src/views/t-post.vue Normal file
View 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>