作者 RuoYi

修改缓存监控内存单位

@@ -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 {