feat: 登录后进入实时首页,并加密保存可刷新的登录凭证

This commit is contained in:
2026-10-26 18:12:00 +08:00
parent eaad01d5a8
commit 91707f959f
14 changed files with 748 additions and 136 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
import type { Component } from "vue";
import { h } from "vue";
import { NIcon } from "naive-ui";
import { PeopleOutline } from "@vicons/ionicons5";
import { HomeOutline } from "@vicons/ionicons5";
function renderIcon(icon: Component) {
return () => h(NIcon, null, { default: () => h(icon) });
}
export type PageKey = "accounts";
export type PageKey = "home";
export const navOptions = [
{ label: "使用者", key: "accounts" as const, icon: renderIcon(PeopleOutline) },
{ label: "首页", key: "home" as const, icon: renderIcon(HomeOutline) },
];