feat: 增加管理首页运行面板并支持用户改密
This commit is contained in:
@@ -3,7 +3,7 @@ import { h, onMounted, onUnmounted, ref } from "vue";
|
||||
import type { Component } from "vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { NButton, NIcon, NLayout, NLayoutSider, NMenu } from "naive-ui";
|
||||
import { CloudDownloadOutline, KeyOutline, ListOutline, LogOutOutline, PeopleOutline, PersonOutline, SettingsOutline } from "@vicons/ionicons5";
|
||||
import { CloudDownloadOutline, HomeOutline, KeyOutline, ListOutline, LogOutOutline, PeopleOutline, PersonOutline, SettingsOutline } from "@vicons/ionicons5";
|
||||
import { api, clearSession, token } from "../shared/http";
|
||||
import ThemeButton from "./ThemeButton.vue";
|
||||
|
||||
@@ -18,10 +18,11 @@ const name = sessionStorage.getItem("decom-name") || "";
|
||||
const collapsed = ref(window.innerWidth < 800);
|
||||
const items = role === "admin"
|
||||
? [
|
||||
{ label: "设置", key: "/admin/settings", icon: renderIcon(SettingsOutline) },
|
||||
{ label: "首页", key: "/admin", icon: renderIcon(HomeOutline) },
|
||||
{ label: "用户", key: "/admin/users", icon: renderIcon(PeopleOutline) },
|
||||
{ label: "账号池", key: "/admin/pool", icon: renderIcon(KeyOutline) },
|
||||
{ label: "采集", key: "/admin/sources", icon: renderIcon(CloudDownloadOutline) },
|
||||
{ label: "设置", key: "/admin/settings", icon: renderIcon(SettingsOutline) },
|
||||
]
|
||||
: [{ label: "任务", key: "/tasks", icon: renderIcon(ListOutline) }];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user