Commit 3b2669d14825e2983fad65dca8ca07482f765d58
1 parent
1147ea5f
修改缓存监控内存单位
Showing
1 changed file
with
2 additions
and
2 deletions
ruoyi-ui/src/views/monitor/cache/index.vue
| @@ -117,14 +117,14 @@ export default { | @@ -117,14 +117,14 @@ export default { | ||
| 117 | this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); | 117 | this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); |
| 118 | this.usedmemory.setOption({ | 118 | this.usedmemory.setOption({ |
| 119 | tooltip: { | 119 | tooltip: { |
| 120 | - formatter: "{b} <br/>{a} : {c}K", | 120 | + formatter: "{b} <br/>{a} : " + this.cache.info.used_memory_human, |
| 121 | }, | 121 | }, |
| 122 | series: [ | 122 | series: [ |
| 123 | { | 123 | { |
| 124 | name: "峰值", | 124 | name: "峰值", |
| 125 | type: "gauge", | 125 | type: "gauge", |
| 126 | detail: { | 126 | detail: { |
| 127 | - formatter: "{value}K", | 127 | + formatter: this.cache.info.used_memory_human, |
| 128 | }, | 128 | }, |
| 129 | data: [ | 129 | data: [ |
| 130 | { | 130 | { |