<div id="app">
<!--緩存-->
<keep-alive>
<router-view v-if="$route.meta.keepAlive"></router-view>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"></router-view>
<!--下拉更新數(shù)據(jù)--><!-- <router-view v-if="isRouterAlive"></router-view> -->
</div>怎么把下面的 v-if="isRouterAlive" 給弄到上面去,但上面已經(jīng)有v-if了
2 回答

慕尼黑5688855
TA貢獻(xiàn)1848條經(jīng)驗(yàn) 獲得超2個(gè)贊
<router-view v-if="!$route.meta.keepAlive || isRouteAlive"></router-view>
這么不行嗎
添加回答
舉報(bào)
0/150
提交
取消