2021-09-09 18:40:38 +08:00
|
|
|
<template>
|
2021-09-11 02:34:36 +08:00
|
|
|
<div>
|
|
|
|
<h2>工作台</h2>
|
|
|
|
<router-link :to="EnumRoutePaths['dashboard-analysis']">analysis</router-link>
|
|
|
|
<n-button @click="removeCurrent">去除</n-button>
|
|
|
|
</div>
|
2021-09-09 18:40:38 +08:00
|
|
|
</template>
|
|
|
|
|
2021-09-11 02:34:36 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { NButton } from 'naive-ui';
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
import { EnumRoutePaths } from '@/enum';
|
|
|
|
import { RouteNameMap } from '@/router';
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
function removeCurrent() {
|
|
|
|
router.removeRoute(RouteNameMap.get('dashboard-workbench')!);
|
|
|
|
}
|
|
|
|
</script>
|
2021-09-09 18:40:38 +08:00
|
|
|
<style scoped></style>
|