fix: 获取数据完成后渲染

This commit is contained in:
dap 2024-08-07 17:24:31 +08:00
parent 46de035343
commit 2afec343b6

View File

@ -77,7 +77,10 @@ async function loadInfo() {
<span>命令统计</span> <span>命令统计</span>
</div> </div>
</template> </template>
<CommandChart :data="chartData.command" /> <CommandChart
v-if="chartData.command.length > 0"
:data="chartData.command"
/>
</Card> </Card>
</Col> </Col>
<Col v-bind="baseSpan"> <Col v-bind="baseSpan">
@ -88,7 +91,10 @@ async function loadInfo() {
<span>内存占用</span> <span>内存占用</span>
</div> </div>
</template> </template>
<MemoryChart :data="chartData.memory" /> <MemoryChart
v-if="chartData.memory !== '0'"
:data="chartData.memory"
/>
</Card> </Card>
</Col> </Col>
</Row> </Row>