fix : 修复数据loading加载

This commit is contained in:
2024-03-05 22:59:09 +08:00
parent 4ec7558a31
commit 3b42035892
9 changed files with 57 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div id="used-ele" :style="{ backgroundColor: bgImage }" @click="handleOpenChart">
<div v-if="electricityConsumptionMonthly===0||monthlySavings===0" class="showNull ">
<div v-if="electricityConsumptionMonthly===0&&monthlySavings===0" class="showNull ">
<div class="loading" v-if="loading===0"></div>
{{ loading === 0 ? '加载中...' : '暂无数据~' }}
</div>