This commit is contained in:
reco_luan 2019-04-09 21:09:16 +08:00
parent 44ecad7321
commit cd2043f120
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export default {
created () {
if (this.$tags) {
const currentTag = this.$route.query.tag ? this.$route.query.tag : this.$tags.list[0].name
const currentTag = this.$route.query.tag ? this.$route.query.tag : this.$tags.list.length > 0 ? this.$tags.list[0].name : ''
let tags = this.$tags.list
tags.map(item => {
const color = this._tagColor()

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-reco",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "this is a vuepress theme",
"main": "index.js",
"scripts": {