ruoyi-plus-soybean/src/views/dashboard/workbench/index.vue

22 lines
541 B
Vue
Raw Normal View History

<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>
</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>
<style scoped></style>