fix airlist异步获取慢 导致导航栏更不不及时
在切换tab时候 强制更新导航栏组件
This commit is contained in:
parent
95da221144
commit
4ab76bfafe
@ -175,7 +175,11 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.title = '后台管理'
|
this.title = '后台管理'
|
||||||
}
|
}
|
||||||
// 给导航栏切换加个 动画过渡
|
/* 切换tab强制更新组件 */
|
||||||
|
this.loadRoute(this.airList)
|
||||||
|
this.$forceUpdate()// 刷新本组件
|
||||||
|
|
||||||
|
/* 给导航栏切换加个 动画过渡 */
|
||||||
this.show = false
|
this.show = false
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.show = true
|
this.show = true
|
||||||
|
Loading…
Reference in New Issue
Block a user