2021-01-25 15:39:59 +08:00
|
|
|
|
<template>
|
2021-03-15 12:44:58 +08:00
|
|
|
|
<div class="layout-scrollbar">
|
|
|
|
|
<div class="layout-view-bg-white flex layout-view-link">
|
|
|
|
|
<a :href="currentRouteMeta.isLink" target="_blank" class="flex-margin">{{ currentRouteMeta.title }}:{{ currentRouteMeta.isLink }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-01-25 15:39:59 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-03-15 12:44:58 +08:00
|
|
|
|
import { defineComponent, computed } from 'vue';
|
2021-01-25 15:39:59 +08:00
|
|
|
|
export default defineComponent({
|
2021-03-15 12:44:58 +08:00
|
|
|
|
name: 'layoutLinkView',
|
|
|
|
|
props: {
|
|
|
|
|
meta: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => {},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
setup(props) {
|
|
|
|
|
// 获取父级菜单数据
|
|
|
|
|
const currentRouteMeta = computed(() => {
|
|
|
|
|
return props.meta;
|
|
|
|
|
});
|
|
|
|
|
return {
|
|
|
|
|
currentRouteMeta,
|
|
|
|
|
};
|
|
|
|
|
},
|
2021-01-25 15:39:59 +08:00
|
|
|
|
});
|
2021-03-15 12:44:58 +08:00
|
|
|
|
</script>
|