docs: simplify seciton name (#4961)

This commit is contained in:
neverland
2019-11-08 14:29:04 +08:00
committed by GitHub
parent e21c047306
commit 7ec7692918
12 changed files with 69 additions and 88 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ function getQueryString(name) {
export default {
computed: {
title() {
const { name } = this.$route.meta;
return name ? name.replace(/-/g, '') : '';
return this.$route.meta.title || '';
},
showNav() {