feat: 登录后进入实时首页,并加密保存可刷新的登录凭证
This commit is contained in:
@@ -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) },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user