This commit is contained in:
xugaoyi 2021-05-03 23:36:13 +08:00
parent 3fb8ea12cb
commit 947f83476e
3 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7", "vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.8.2", "vuepress-theme-vdoing": "^1.8.3",
"yamljs": "^0.3.0" "yamljs": "^0.3.0"
}, },
"dependencies": { "dependencies": {

View File

@ -90,7 +90,8 @@ export default {
}, },
getCatalogueList () { getCatalogueList () {
const { sidebar } = this.$site.themeConfig const { sidebar } = this.$site.themeConfig
const key = this.$frontmatter.pageComponent.data.key const { data } = this.$frontmatter.pageComponent
const key = data.path || data.key
let keyArray = key.split('/'); let keyArray = key.split('/');
let catalogueList = (sidebar[`/${keyArray[0]}/`]); let catalogueList = (sidebar[`/${keyArray[0]}/`]);
if (keyArray.length > 1) { if (keyArray.length > 1) {

View File

@ -1,6 +1,6 @@
{ {
"name": "vuepress-theme-vdoing", "name": "vuepress-theme-vdoing",
"version": "1.8.2", "version": "1.8.3",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。", "description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": { "author": {
"name": "gaoyi(Evan) Xu" "name": "gaoyi(Evan) Xu"