File tree Expand file tree Collapse file tree 2 files changed +8
-29
lines changed Expand file tree Collapse file tree 2 files changed +8
-29
lines changed Original file line number Diff line number Diff line change @@ -330,28 +330,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
330
330
}
331
331
]
332
332
} ,
333
- {
334
- path : '/infra' ,
335
- component : Layout ,
336
- name : 'InfraRedis' ,
337
- meta : {
338
- hidden : true
339
- } ,
340
- children : [
341
- {
342
- path : '/infra/redis' ,
343
- component : ( ) => import ( '@/views/infra/redis/index.vue' ) ,
344
- name : 'InfraRedis' ,
345
- meta : {
346
- noCache : true ,
347
- hidden : true ,
348
- canTo : true ,
349
- title : 'REDIS测试测试测试' ,
350
- activeMenu : 'infra/redis/index'
351
- }
352
- }
353
- ]
354
- } ,
355
333
{
356
334
path : '/property' ,
357
335
component : Layout ,
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ import { GaugeChart } from 'echarts/charts'
68
68
import { ToolboxComponent } from ' echarts/components'
69
69
import * as RedisApi from ' @/api/infra/redis'
70
70
import { RedisMonitorInfoVO } from ' @/api/infra/redis/types'
71
- echarts .use ([ToolboxComponent ])
72
- echarts .use ([GaugeChart ])
73
71
const cache = ref <RedisMonitorInfoVO >()
74
72
75
73
// 基本信息
@@ -145,14 +143,14 @@ const usedmemoryEchartChika = reactive({
145
143
fontSize: 15
146
144
},
147
145
pointer: {
148
- // 指针的大小
146
+ // 指针的大小
149
147
width: 7 ,
150
148
show: true
151
149
},
152
150
detail: {
153
151
textStyle: {
154
152
fontWeight: ' normal' ,
155
- // 里面文字下的数值大小(50)
153
+ // 里面文字下的数值大小(50)
156
154
fontSize: 15 ,
157
155
color: ' #FFFFFF'
158
156
},
@@ -213,13 +211,13 @@ const commandStatsRefChika = reactive({
213
211
214
212
/** 加载数据 */
215
213
const getSummary = () => {
216
- // 初始化命令图表
217
- initcommandStatsChart ()
214
+ // 初始化命令图表
215
+ initCommandStatsChart ()
218
216
usedMemoryInstance ()
219
217
}
220
218
221
219
/** 命令使用情况 */
222
- const initcommandStatsChart = async () => {
220
+ const initCommandStatsChart = async () => {
223
221
usedmemoryEchartChika .series [0 ].data = []
224
222
// 发起请求
225
223
try {
@@ -265,6 +263,9 @@ const usedMemoryInstance = async () => {
265
263
266
264
/** 初始化 **/
267
265
onMounted (() => {
266
+ echarts .use ([ToolboxComponent ])
267
+ echarts .use ([GaugeChart ])
268
+ // 读取 redis 信息
268
269
readRedisInfo ()
269
270
// 加载数据
270
271
getSummary ()
You can’t perform that action at this time.
0 commit comments