Skip to content

Commit

Permalink
fix: update vssue when navigating directly between <Page>
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Jan 29, 2021
1 parent a65727a commit 3da4993
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/theme-gungnir/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@
v-if="($page.id == 'posts') && getPostIndex != -1"
:data="getPostPager"
/>
<!--
Use prop `key` to update vssue when navigating directly from one
<Page> to another.
See here: https://github.com/meteorlxy/vssue/issues/87
-->
<Vssue
v-if="$themeConfig.comment"
:title="$page.title + ' - ' + $site.title"
class="vssue-comment-wrapper"
:title="$page.title + ' - ' + $site.title"
:key="$route.path"
/>
</main>
</template>
Expand Down

1 comment on commit 3da4993

@vercel
Copy link

@vercel vercel bot commented on 3da4993 Jan 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.