61,112
社区成员
发帖
与我相关
我的任务
分享
<template>
<div id="app">
<router-view v-if="isRouterAlive" :isShow="isShow"></router-view>
</div>
</template>
<script>
export default {
name: "App",
provide () {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true,
isShow: true
}
},
methods: {
// 刷新当前页
reload:function () {
this.isRouterAlive = false;
this.$nextTick(function(){
this.isRouterAlive = true;
this.isShow = false;
})
},
}
};
</script>
mounted: function () {
if(this.isShow == false) {
this.dialogGuidelines = false;(控制模态库的显示 与 隐藏)
} else {
this.dialogGuidelines = true;
}