mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-08 17:40:23 +08:00
edit about & dashborad permission
This commit is contained in:
@@ -24,7 +24,7 @@ export function createFakeUserList() {
|
||||
username: 'filemgr',
|
||||
password: '123456',
|
||||
realName: '归档代理',
|
||||
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=339449197&s=640',
|
||||
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=468131917&s=640',
|
||||
desc: 'file manager',
|
||||
token: 'fakeToken2',
|
||||
homePath: '/dashboard/workbench',
|
||||
|
||||
21
frontend/vben/src/router/menus/modules/dashboard.ts
Normal file
21
frontend/vben/src/router/menus/modules/dashboard.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { MenuModule } from '/@/router/types'
|
||||
import { t } from '/@/hooks/web/useI18n'
|
||||
const menu: MenuModule = {
|
||||
orderNo: 10,
|
||||
menu: {
|
||||
name: t('routes.dashboard.dashboard'),
|
||||
path: '/dashboard',
|
||||
|
||||
children: [
|
||||
{
|
||||
path: 'analysis',
|
||||
name: t('routes.dashboard.analysis'),
|
||||
},
|
||||
{
|
||||
path: 'workbench',
|
||||
name: t('routes.dashboard.workbench'),
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
export default menu
|
||||
@@ -2,6 +2,7 @@ import type { AppRouteModule } from '/@/router/types'
|
||||
|
||||
import { LAYOUT } from '/@/router/constant'
|
||||
import { t } from '/@/hooks/web/useI18n'
|
||||
import { RoleEnum } from '/@/enums/roleEnum'
|
||||
|
||||
const dashboard: AppRouteModule = {
|
||||
path: '/dashboard',
|
||||
@@ -21,6 +22,7 @@ const dashboard: AppRouteModule = {
|
||||
meta: {
|
||||
// affix: true,
|
||||
title: t('routes.dashboard.analysis'),
|
||||
roles: [RoleEnum.SUPER],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -4,8 +4,15 @@
|
||||
<div class="flex justify-between items-center">
|
||||
<span class="flex-1">
|
||||
<a :href="GITHUB_URL" target="_blank">{{ name }}</a>
|
||||
是一个基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript
|
||||
的后台解决方案,目标是为中大型项目开发,提供现成的开箱解决方案及丰富的示例,原则上不会限制任何代码用于商用。
|
||||
是
|
||||
<a href="https://github.com/fumiama" target="_blank">源文雨</a>
|
||||
的大学本科毕业设计项目。感谢
|
||||
<a href="https://www.sice.uestc.edu.cn/info/1302/5185.htm" target="_blank">马立香</a>
|
||||
老师在我毕业设计期间对本项目的悉心指导。
|
||||
<br />
|
||||
本项目前端使用
|
||||
<a href="https://github.com/vbenjs/vue-vben-admin" target="_blank">vue-vben-admin</a>
|
||||
,后端使用 Golang 与 SQLite 数据库,最后统一编译为一个开箱即用的可执行文件。
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
@@ -29,7 +36,7 @@
|
||||
const devSchema: DescItem[] = []
|
||||
|
||||
const commonTagRender = (color: string) => (curVal) => h(Tag, { color }, () => curVal)
|
||||
const commonLinkRender = (text: string) => (href) => h('a', { href, target: '_blank' }, text)
|
||||
// const commonLinkRender = (text: string) => (href) => h('a', { href, target: '_blank' }, text)
|
||||
|
||||
const infoSchema: DescItem[] = [
|
||||
{
|
||||
@@ -42,21 +49,6 @@
|
||||
field: 'lastBuildTime',
|
||||
render: commonTagRender('blue'),
|
||||
},
|
||||
{
|
||||
label: '文档地址',
|
||||
field: 'doc',
|
||||
render: commonLinkRender('文档地址'),
|
||||
},
|
||||
{
|
||||
label: '预览地址',
|
||||
field: 'preview',
|
||||
render: commonLinkRender('预览地址'),
|
||||
},
|
||||
{
|
||||
label: 'Github',
|
||||
field: 'github',
|
||||
render: commonLinkRender('Github'),
|
||||
},
|
||||
]
|
||||
|
||||
const infoData = {
|
||||
|
||||
Reference in New Issue
Block a user