2021-01-25 15:39:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="layout-scrollbar">
|
2021-01-31 02:13:22 +08:00
|
|
|
|
<div class="layout-view-bg-white flex layout-view-link">
|
2021-01-25 15:39:59 +08:00
|
|
|
|
<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>
|