Files
mayfly-go/frontend/src/layout/routerView/link.vue

30 lines
735 B
Vue
Raw Normal View History

<template>
2023-12-15 17:33:22 +08:00
<div>
<div class="layout-view-bg-white flex layout-view-link">
2024-11-20 22:43:53 +08:00
<a :href="currentRouteMeta.link" target="_blank" class="flex-margin"> {{ $t(currentRouteMeta.title) }}{{ currentRouteMeta.link }} </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>