提交 263e8521 作者: 方治民

docs: 文档显示优化

上级 c476b767
......@@ -3,7 +3,7 @@
<div :class="`${prefixCls}__links`">
<a @click="openWindow(SITE_URL)">{{ t('layout.footer.onlinePreview') }}</a>
<GithubFilled @click="openWindow(GITLAB_URL)" :class="`${prefixCls}__github`" />
<GithubFilled @click="openWindow(GIT_URL)" :class="`${prefixCls}__git`" />
<a @click="openWindow(DOC_URL)">{{ t('layout.footer.onlineDocument') }}</a>
</div>
......@@ -17,7 +17,7 @@
import { GithubFilled } from '@ant-design/icons-vue'
import { DOC_URL, GITLAB_URL, SITE_URL } from '/@/settings/siteSetting'
import { DOC_URL, GIT_URL, SITE_URL } from '/@/settings/siteSetting'
import { openWindow } from '/@/utils'
import { useI18n } from '/@/hooks/web/useI18n'
......@@ -53,7 +53,7 @@
prefixCls,
t,
DOC_URL,
GITLAB_URL,
GIT_URL,
SITE_URL,
openWindow,
footerRef,
......@@ -84,7 +84,7 @@
}
}
&__github {
&__git {
margin: 0 30px;
&:hover {
......
// gitlab repo url
export const GITLAB_URL = 'https://gitlab.yiring.com/basic/basic-vue-admin'
// git repo url
export const GIT_URL = 'https://gitlab.yiring.com/basic/basic-vue-admin'
// README.md
export const DOC_URL = 'https://gitlab.yiring.com/basic/basic-vue-admin/blob/main/README.md'
......
......@@ -3,7 +3,7 @@
<template #headerContent>
<div class="flex justify-between items-center">
<span class="flex-1">
<a :href="GITLAB_URL" target="_blank">{{ name }}</a>
<a :href="GIT_URL" target="_blank">{{ name }}</a>
是一个基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript 的后台解决方案, 目标是为项目开发,
提供现成的开箱解决方案。
</span>
......@@ -19,7 +19,7 @@
import { Tag } from 'ant-design-vue'
import { PageWrapper } from '/@/components/Page'
import { Description, DescItem, useDescription } from '/@/components/Description/index'
import { GITLAB_URL, SITE_URL, DOC_URL } from '/@/settings/siteSetting'
import { GIT_URL, SITE_URL, DOC_URL } from '/@/settings/siteSetting'
const { pkg, lastBuildTime } = __APP_INFO__
......@@ -53,9 +53,9 @@
render: commonLinkRender('预览地址'),
},
{
label: 'GitLab',
field: 'gitlab',
render: commonLinkRender('GitLab'),
label: 'Git',
field: 'git',
render: commonLinkRender(GIT_URL),
},
]
......@@ -64,7 +64,7 @@
lastBuildTime,
doc: DOC_URL,
preview: SITE_URL,
gitlab: GITLAB_URL,
git: GIT_URL,
}
Object.keys(dependencies).forEach((key) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论