feat: 新增接口文档路由
Former-commit-id: 2e7c82a6a79f8f9ab8f5a9491268b7fa61518e56
This commit is contained in:
@@ -38,32 +38,39 @@ function logout() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<!-- 顶部导航栏 -->
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<div class="flex justify-start">
|
<!-- 左侧面包屑 -->
|
||||||
|
<div class="flex">
|
||||||
<hamburger
|
<hamburger
|
||||||
:is-active="appStore.sidebar.opened"
|
:is-active="appStore.sidebar.opened"
|
||||||
@toggleClick="toggleSideBar"
|
@toggleClick="toggleSideBar"
|
||||||
/>
|
/>
|
||||||
<!-- 面包屑导航栏 -->
|
|
||||||
<breadcrumb />
|
<breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 宽屏显示 -->
|
<!-- 右侧导航 -->
|
||||||
<div class="flex justify-start">
|
<div class="navbar-right">
|
||||||
<!-- 窄屏不显示 -->
|
<!-- 导航栏设置(窄屏隐藏)-->
|
||||||
<div v-if="device !== 'mobile'" class="flex justify-center items-center">
|
<div v-if="device !== 'mobile'" class="navbar-setting-wrapper">
|
||||||
<!--全屏 -->
|
<!--全屏 -->
|
||||||
<screenfull id="screenfull" />
|
<screenfull
|
||||||
|
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
||||||
|
id="screenfull"
|
||||||
|
/>
|
||||||
<!-- 布局大小 -->
|
<!-- 布局大小 -->
|
||||||
<el-tooltip content="布局大小" effect="dark" placement="bottom">
|
<el-tooltip content="布局大小" effect="dark" placement="bottom">
|
||||||
<size-select />
|
<size-select
|
||||||
|
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
||||||
|
/>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|
||||||
<!--语言选择-->
|
<!--语言选择-->
|
||||||
<lang-select />
|
<lang-select
|
||||||
|
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 头像 -->
|
|
||||||
|
<!-- 用户头像 -->
|
||||||
<el-dropdown trigger="click">
|
<el-dropdown trigger="click">
|
||||||
<div class="flex justify-center items-center mx-2">
|
<div class="flex justify-center items-center mx-2">
|
||||||
<img
|
<img
|
||||||
@@ -72,7 +79,6 @@ function logout() {
|
|||||||
/>
|
/>
|
||||||
<i-ep-caret-bottom class="w-3 h-3" />
|
<i-ep-caret-bottom class="w-3 h-3" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<router-link to="/">
|
<router-link to="/">
|
||||||
@@ -105,5 +111,21 @@ function logout() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-shadow: 0 0 1px #0003;
|
box-shadow: 0 0 1px #0003;
|
||||||
|
|
||||||
|
.navbar-right {
|
||||||
|
display: flex;
|
||||||
|
.navbar-setting-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.navbar-setting-item {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
padding: 0 8px;
|
||||||
|
display: inline-block;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #5a5e66;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -42,6 +42,11 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||||||
path: '401',
|
path: '401',
|
||||||
component: () => import('@/views/error-page/401.vue'),
|
component: () => import('@/views/error-page/401.vue'),
|
||||||
meta: { hidden: true }
|
meta: { hidden: true }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'apidoc',
|
||||||
|
component: () => import('@/views/demo/apidoc.vue'),
|
||||||
|
meta: { hidden: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user