Skip to content

Commit 299cd7c

Browse files
committed
fix: VERSION 1.0.6&password page&timeLine page
1 parent a7de3ec commit 299cd7c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

components/Background.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
<script>
66
export default {
77
mounted () {
8-
const color = '#fff'
9-
const lineColor = '#fff'
8+
const keyPage = this.$themeConfig.keyPage
9+
let color = '#424242'
10+
let lineColor = '#424242'
1011
const num = 20
12+
if (keyPage) {
13+
color = keyPage.color || color
14+
lineColor = keyPage.lineColor || lineColor
15+
}
1116
1217
const script = document.createElement('script')
1318
script.src = 'https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js'
@@ -107,7 +112,7 @@ export default {
107112
}
108113
}
109114
</script>
110-
<style lang='scss' scoped>
115+
<style lang='stylus' scoped>
111116
#particles-oli-wrapper {
112117
position: absolute;
113118
z-index: -1;

components/TimeLine.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export default {
7777
dateFormat (date, type) {
7878
date = date.replace(/-/g,'/')
7979
const dateObj = new Date(date)
80-
const dateObj = new Date(date)
8180
const year = dateObj.getFullYear()
8281
const mon = dateObj.getMonth() + 1
8382
const day = dateObj.getDate()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-theme-reco",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "this is a vuepress theme",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)