Skip to content

Commit 189d5a4

Browse files
author
reco_luan
authored
Merge pull request #279 from ThaePeng/master
fix: fix a bug about go back to home page url
2 parents b90238c + 540c336 commit 189d5a4

File tree

1 file changed

+1
-1
lines changed
  • packages/vuepress-theme-reco/layouts

1 file changed

+1
-1
lines changed

packages/vuepress-theme-reco/layouts/404.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
if (this.noFoundPageByTencent) {
2727
const dom = document.createElement('script')
2828
dom.setAttribute('homePageName', '回到首页')
29-
dom.setAttribute('homePageUrl', '/')
29+
dom.setAttribute('homePageUrl', this.$site.base)
3030
dom.setAttribute('src', '//qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js')
3131
3232
document.body.append(dom)

0 commit comments

Comments
 (0)