问题记录:在app.vue中添加如下代码
<router-view :key="key" />
computed: {
key() {
return this.$route.name !== undefined
? this.$route.name + new Date()
: this.$route + new Date();
}
}
问题记录:在app.vue中添加如下代码
<router-view :key="key" />
computed: {
key() {
return this.$route.name !== undefined
? this.$route.name + new Date()
: this.$route + new Date();
}
}