From e56b116f0e410c317b9745a013c6b2073debb971 Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Wed, 6 Jan 2021 11:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/.vuepress/config.js | 2 ++ vue/full/src/config/index.js | 5 +++-- vue/full/src/router/module/doc/index.js | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 63a04fc..5346f2f 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ - [在线预览](https://toesbieya.cn) test/123456 (出现被挤掉的情况时请注册一个新账号) -- [文档](https://doc.toesbieya.cn) +- [文档](https://doc.toesbieya.cn/jxc-admin) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5f85dcd..ff0c20d 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,4 +1,6 @@ module.exports = { + base: '/jxc-admin/', + title: 'jxc-admin', description: "jxc-admin后台管理系统文档", diff --git a/vue/full/src/config/index.js b/vue/full/src/config/index.js index 2f5c5ae..261acfe 100644 --- a/vue/full/src/config/index.js +++ b/vue/full/src/config/index.js @@ -1,16 +1,17 @@ const isDev = process.env.NODE_ENV === 'development' +const contextPath = isDev ? '/' : '/jxc-admin/' module.exports = { isDev, //项目的部署路径,始终以'/'开头,以'/'结束 - contextPath: '/', + contextPath, //页面标题、登录注册页的标题 title: 'BiuBiuBiu~', //logo地址 - logo: `/static/img/logo.svg`, + logo: `${contextPath}static/img/logo.svg`, //全局axios的baseUrl、devServer的路由前缀 apiPrefix: '/api', diff --git a/vue/full/src/router/module/doc/index.js b/vue/full/src/router/module/doc/index.js index 4bb97ef..c7f28d6 100644 --- a/vue/full/src/router/module/doc/index.js +++ b/vue/full/src/router/module/doc/index.js @@ -1,4 +1,4 @@ export default { - path: 'https://doc.toesbieya.cn', + path: 'https://doc.toesbieya.cn/jxc-admin', meta: {title: '文档', icon: 'svg-documentation', noAuth: true} }