解决搜索问题

This commit is contained in:
yige committed 2020-07-17 00:02:48 +08:00
1 parent 321dd05d97
commit d385062f5f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -8,6 +8,6 @@ footer
| Copyright © 2020 WangYi.
br
| All Rights Reserved.
a(href='http://www.beian.miit.gov.cn', target='_blank', rel='external nofollow', style='color: #ccc')
a(href='http://www.beian.miit.gov.cn', target='_blank', rel='external nofollow', style='color: #ccc; margin-left: 5px')
| 浙ICP备14013313号-2
</template>
+1 -1
View File
@@ -116,7 +116,7 @@ export default {
}, 3000)
},
search () {
if (this.searchVal !== '') { this.$router.push({ path: 'search?q=' + this.searchVal }) }
if (this.searchVal !== '') { this.$router.push({ path: '/search?q=' + this.searchVal }) }
}
}
}