mirror of
https://github.com/certd/certd.git
synced 2026-04-15 13:32:37 +08:00
feat: 升级前端框架,适配手机端
This commit is contained in:
54
packages/ui/certd-client/src/router/source/modules/about.ts
Normal file
54
packages/ui/certd-client/src/router/source/modules/about.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
import { IFrameView } from "/@/vben/layouts";
|
||||
import { useSettingStore } from "/@/store/modules/settings";
|
||||
|
||||
export const aboutResource = [
|
||||
{
|
||||
title: "文档",
|
||||
name: "about",
|
||||
path: "/about",
|
||||
redirect: "/about/doc",
|
||||
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"
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "Gitee",
|
||||
path: "/about/gitee",
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: "ion:logo-octocat",
|
||||
link: "https://gitee.com/certd/certd",
|
||||
title: "Gite"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default aboutResource;
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useSettingStore } from "/@/store/modules/settings";
|
||||
import aboutResource from "/@/router/source/modules/about";
|
||||
|
||||
export const certdResources = [
|
||||
{
|
||||
@@ -8,7 +9,8 @@ export const certdResources = [
|
||||
redirect: "/certd/pipeline",
|
||||
meta: {
|
||||
icon: "ion:key-outline",
|
||||
auth: true
|
||||
auth: true,
|
||||
order: 0
|
||||
},
|
||||
children: [
|
||||
{
|
||||
@@ -220,3 +222,5 @@ export const certdResources = [
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default certdResources;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import LayoutPass from "/@/layout/layout-pass.vue";
|
||||
import { useSettingStore } from "/@/store/modules/settings";
|
||||
import aboutResource from "/@/router/source/modules/about";
|
||||
|
||||
export const sysResources = [
|
||||
{
|
||||
@@ -7,10 +8,10 @@ export const sysResources = [
|
||||
name: "SysRoot",
|
||||
path: "/sys",
|
||||
redirect: "/sys/settings",
|
||||
component: LayoutPass,
|
||||
meta: {
|
||||
icon: "ion:settings-outline",
|
||||
permission: "sys:settings:view"
|
||||
permission: "sys:settings:view",
|
||||
order: 10
|
||||
},
|
||||
children: [
|
||||
{
|
||||
@@ -231,3 +232,5 @@ export const sysResources = [
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default sysResources;
|
||||
|
||||
Reference in New Issue
Block a user