在 router.config.js 中批改为
const RouteView = {
name: 'RouteView',
// render: h => h('router-view')
render() {
const inKeep = (
<keep-alive>
<router-view></router-view>
</keep-alive>
)
return inKeep
}
}
在 router.config.js 中批改为
const RouteView = {
name: 'RouteView',
// render: h => h('router-view')
render() {
const inKeep = (
<keep-alive>
<router-view></router-view>
</keep-alive>
)
return inKeep
}
}