fix: 获取数据完成后渲染
This commit is contained in:
parent
46de035343
commit
2afec343b6
10
apps/web-antd/src/views/monitor/cache/index.vue
vendored
10
apps/web-antd/src/views/monitor/cache/index.vue
vendored
@ -77,7 +77,10 @@ async function loadInfo() {
|
||||
<span>命令统计</span>
|
||||
</div>
|
||||
</template>
|
||||
<CommandChart :data="chartData.command" />
|
||||
<CommandChart
|
||||
v-if="chartData.command.length > 0"
|
||||
:data="chartData.command"
|
||||
/>
|
||||
</Card>
|
||||
</Col>
|
||||
<Col v-bind="baseSpan">
|
||||
@ -88,7 +91,10 @@ async function loadInfo() {
|
||||
<span>内存占用</span>
|
||||
</div>
|
||||
</template>
|
||||
<MemoryChart :data="chartData.memory" />
|
||||
<MemoryChart
|
||||
v-if="chartData.memory !== '0'"
|
||||
:data="chartData.memory"
|
||||
/>
|
||||
</Card>
|
||||
</Col>
|
||||
</Row>
|
||||
|
Loading…
Reference in New Issue
Block a user