提交 263e8521 作者: 方治民

docs: 文档显示优化

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