feat: 管理后台改为浅色蓝主色并平铺导航
This commit is contained in:
@@ -4,7 +4,6 @@ import { RouterView, useRoute, useRouter } from "vue-router";
|
||||
import { NAvatar, NButton, NDropdown, NIcon, NLayout, NLayoutContent, NLayoutSider, NMenu, NTooltip } from "naive-ui";
|
||||
import type { MenuOption } from "naive-ui";
|
||||
import {
|
||||
ChatbubblesOutline,
|
||||
DesktopOutline,
|
||||
GridOutline,
|
||||
KeyOutline,
|
||||
@@ -32,15 +31,8 @@ function renderIcon(icon: Component) {
|
||||
|
||||
const menuOptions: MenuOption[] = [
|
||||
{ label: "概览", key: "/overview", icon: renderIcon(GridOutline) },
|
||||
{
|
||||
label: "通讯",
|
||||
key: "comms",
|
||||
icon: renderIcon(ChatbubblesOutline),
|
||||
children: [
|
||||
{ label: "设备端", key: "/endpoints", icon: renderIcon(PhonePortraitOutline) },
|
||||
{ label: "群组", key: "/groups", icon: renderIcon(PeopleOutline) },
|
||||
],
|
||||
},
|
||||
{ label: "设备端", key: "/endpoints", icon: renderIcon(PhonePortraitOutline) },
|
||||
{ label: "群组", key: "/groups", icon: renderIcon(PeopleOutline) },
|
||||
{ label: "投递记录", key: "/messages", icon: renderIcon(PaperPlaneOutline) },
|
||||
{ label: "API 令牌", key: "/tokens", icon: renderIcon(KeyOutline) },
|
||||
{ label: "设置", key: "/settings", icon: renderIcon(SettingsOutline) },
|
||||
@@ -118,7 +110,7 @@ async function onLogout() {
|
||||
</template>
|
||||
</n-button>
|
||||
</n-dropdown>
|
||||
<n-avatar round :size="28" color="#18a058">{{ initial }}</n-avatar>
|
||||
<n-avatar round :size="28" color="#0969da">{{ initial }}</n-avatar>
|
||||
<span v-if="!collapsed" class="name">{{ auth.username }}</span>
|
||||
<n-tooltip placement="right">
|
||||
<template #trigger>
|
||||
|
||||
Reference in New Issue
Block a user