chore: 优化

This commit is contained in:
xiaojunnuo
2025-03-10 16:06:40 +08:00
parent 0c8a84656a
commit 0f5b9564c6
6 changed files with 43 additions and 59 deletions
@@ -1,54 +1,40 @@
import { IFrameView } from "/@/vben/layouts";
import { useSettingStore } from "/@/store/modules/settings";
import { computed } from "vue";
import TutorialButton from "/@/components/tutorial/index.vue";
export const aboutResource = [
{
title: "文档",
name: "about",
path: "/about",
redirect: "/about/doc",
name: "document",
path: "/about/doc",
component: IFrameView,
meta: {
icon: "lucide:book-open-text",
link: "https://certd.docmirror.cn",
title: "文档",
order: 9999,
show: () => {
const settingStore = useSettingStore();
return !settingStore.isComm;
}
}
},
{
title: "教程",
name: "help",
path: "/help",
meta: {
icon: "lucide:copyright",
order: 9999,
show: () => {
const settingStore = useSettingStore();
return !settingStore.isComm;
}
},
children: [
{
title: "文档",
name: "document",
path: "/about/doc",
component: IFrameView,
meta: {
icon: "lucide:book-open-text",
link: "https://certd.docmirror.cn",
title: "文档"
}
},
{
name: "Github",
path: "/about/github",
component: IFrameView,
meta: {
icon: "mdi:github",
link: "https://github.com/certd/certd",
title: "Github"
}
slot() {
return <TutorialButton className="flex-center" show-icon={false} />;
},
{
name: "Gitee",
path: "/about/gitee",
component: IFrameView,
meta: {
icon: "ion:logo-octocat",
link: "https://gitee.com/certd/certd",
title: "Gite"
}
}
]
click() {}
}
}
];