Skip to content

Commit 91a5bd4

Browse files
committed
chore: fix that content doesn't reload when route switched
1 parent 362cdf7 commit 91a5bd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vuepress/core/lib/app/components/Content.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default {
5757
5858
reloadContent (pageKey) {
5959
if (Vue.component(pageKey)) {
60+
this.layout = pageKey
6061
return
6162
}
6263
this.layout = 'ContentLoading'
@@ -82,7 +83,7 @@ export default {
8283

8384
<style>
8485
.fade-enter-active, .fade-leave-active {
85-
transition: opacity .3s;
86+
transition: opacity .2s;
8687
}
8788
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
8889
opacity: 0;

0 commit comments

Comments
 (0)