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>
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user