Skip to content

Commit

Permalink
chore: fix that content doesn't reload when route switched
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 5, 2018
1 parent 362cdf7 commit 91a5bd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vuepress/core/lib/app/components/Content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
reloadContent (pageKey) {
if (Vue.component(pageKey)) {
this.layout = pageKey
return
}
this.layout = 'ContentLoading'
Expand All @@ -82,7 +83,7 @@ export default {

<style>
.fade-enter-active, .fade-leave-active {
transition: opacity .3s;
transition: opacity .2s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
Expand Down

0 comments on commit 91a5bd4

Please sign in to comment.