bug
Your Name
2022-08-19 61aa46c5c464eb3c2b6674173cd854e1c9afd7ae
src/layout/routerView/link.vue
@@ -1,8 +1,6 @@
<template>
   <div class="layout-view-bg-white flex layout-view-link" :style="{ height: `calc(100vh - ${setLinkHeight}` }">
      <a :href="currentRouteMeta.isLink" target="_blank" rel="opener" class="flex-margin">
         {{ $t(currentRouteMeta.title) }}:{{ currentRouteMeta.isLink }}
      </a>
        <a :href="currentRouteMeta.isLink" target="_blank" rel="opener" class="flex-margin"> {{ $t(currentRouteMeta.title) }}:{{ currentRouteMeta.isLink }} </a>
   </div>
</template>
@@ -33,8 +31,8 @@
      const state = reactive<LinkViewState>({
         currentRouteMeta: {
            isLink: '',
            title: '',
         },
                title: ''
            }
      });
      // 设置 link 的高度
      const setLinkHeight = computed(() => {
@@ -49,13 +47,13 @@
            state.currentRouteMeta = <LinkViewRouteMeta>route.meta;
         },
         {
            immediate: true,
                immediate: true
         }
      );
      return {
         setLinkHeight,
         ...toRefs(state),
            ...toRefs(state)
      };
   },
    }
});
</script>