fix: VERSION 1.0.6&password page&timeLine page

This commit is contained in:
reco_luan 2019-09-01 21:15:27 +08:00
parent a7de3ecfba
commit 299cd7c2c7
3 changed files with 9 additions and 5 deletions

View File

@ -5,9 +5,14 @@
<script>
export default {
mounted () {
const color = '#fff'
const lineColor = '#fff'
const keyPage = this.$themeConfig.keyPage
let color = '#424242'
let lineColor = '#424242'
const num = 20
if (keyPage) {
color = keyPage.color || color
lineColor = keyPage.lineColor || lineColor
}
const script = document.createElement('script')
script.src = 'https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js'
@ -107,7 +112,7 @@ export default {
}
}
</script>
<style lang='scss' scoped>
<style lang='stylus' scoped>
#particles-oli-wrapper {
position: absolute;
z-index: -1;

View File

@ -77,7 +77,6 @@ export default {
dateFormat (date, type) {
date = date.replace(/-/g,'/')
const dateObj = new Date(date)
const dateObj = new Date(date)
const year = dateObj.getFullYear()
const mon = dateObj.getMonth() + 1
const day = dateObj.getDate()

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-reco",
"version": "1.0.5",
"version": "1.0.6",
"description": "this is a vuepress theme",
"main": "index.js",
"scripts": {