首页div 控件隐藏

<div>
 <div :style="'display:'+ panalVisible.zkt1"><zkt1 /></div>
 <div :style="'display:'+ panalVisible.sysLog"><sys-log /></div>
</div>


const panalVisible = reactive({
 zkt1: 'none',
 sysLog: 'none'
})


onMounted(()=>{
  panalVisible.zkt1 = 'block'
  panalVisible.sysLog = 'none'

  // panalVisible.zkt1 = 'none'
  // panalVisible.sysLog = 'block'
});
posted @ 2023-12-18 13:46  寒冷的雨呢  阅读(2)  评论(0编辑  收藏  举报