更新大屏
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
<template>
|
||||
<div class="noScollLine">
|
||||
<!-- 预警信息弹框 -->
|
||||
<Home_YJ v-if="isShow.showYj" :show="isShow.showYj" :data="list.yjxqInfo" />
|
||||
<Home_YJ v-if="isShow.showYj" :show="isShow.showYj" :data="list.Info_YJ" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { qcckPost, qcckGet } from "@/api/qcckApi.js";
|
||||
import emitter from "@/utils/eventBus.js";
|
||||
import Home_YJ from "./components/home_yj.vue";
|
||||
import { ref, onMounted, onUnmounted, reactive, getCurrentInstance } from "vue";
|
||||
@ -22,8 +21,7 @@ onMounted(() => {
|
||||
// 展示预警
|
||||
emitter.on("showHomeYJ", (res) => {
|
||||
isShow.value.showYj = res ? true : false;
|
||||
console.log(res,'====');
|
||||
// if (res) list.Info_YJ = res;
|
||||
if (res) list.Info_YJ = res;
|
||||
});
|
||||
});
|
||||
onUnmounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user