想从添加或者跟新页面跳转回index页面,路由跳转回去,怎么使index自动刷新数据呢
在index页面中 加入代码
export default {
provide(){
return{
reload:this.reload
}
},
data() {
isRouterAlive:true
}
}
想从添加或者跟新页面跳转回index页面,路由跳转回去,怎么使index自动刷新数据呢
在index页面中 加入代码
export default {
provide(){
return{
reload:this.reload
}
},
data() {
isRouterAlive:true
}
}