PixelAI-admin/vue-admin-wonderful-next/src/views/layout/routerView/link.vue

30 lines
664 B
Vue
Raw Normal View History

<template>
<div class="layout-scrollbar">
<div class="layout-view-bg-white flex">
<a :href="currentRouteMeta.isLink" target="_blank"
class="flex-margin">{{currentRouteMeta.title}}{{currentRouteMeta.isLink}}</a>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent, computed } from "vue";
export default defineComponent({
name: "layoutLinkView",
props: {
meta: {
type: Object,
default: () => {},
},
},
setup(props) {
// 获取父级菜单数据
const currentRouteMeta = computed(() => {
return props.meta;
});
return {
currentRouteMeta,
};
},
});
</script>