diff --git a/package.json b/package.json index 0be3075..d136b15 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-zooming": "^1.1.7", - "vuepress-theme-vdoing": "^1.12.3", + "vuepress-theme-vdoing": "^1.12.4", "yamljs": "^0.3.0" } } diff --git a/vdoing/components/Home.vue b/vdoing/components/Home.vue index 7eececa..9d229ba 100644 --- a/vdoing/components/Home.vue +++ b/vdoing/components/Home.vue @@ -224,7 +224,7 @@ export default { } else { return 'background: var(--mainBg);color: var(--textColor)' } - } else if (bannerBg.indexOf('background') > -1) { // 自定义背景样式 + } else if (bannerBg.indexOf('background:') > -1) { // 自定义背景样式 return bannerBg } else if (bannerBg.indexOf('.') > -1) { // 大图 return `background: url(${this.$withBase(bannerBg)}) center center / cover no-repeat` diff --git a/vdoing/package.json b/vdoing/package.json index d6d2d35..5360cfc 100644 --- a/vdoing/package.json +++ b/vdoing/package.json @@ -1,6 +1,6 @@ { "name": "vuepress-theme-vdoing", - "version": "1.12.3", + "version": "1.12.4", "description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。", "author": { "name": "gaoyi(Evan) Xu"