mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 新增机器状态查看&机器状态等
This commit is contained in:
7
mayfly_go_web/src/common/echarts/useEcharts.ts
Normal file
7
mayfly_go_web/src/common/echarts/useEcharts.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as echarts from 'echarts'
|
||||
|
||||
export default function(dom: any, theme: any = null, option: any) {
|
||||
let chart = echarts.init(dom, theme);
|
||||
chart.setOption(option);
|
||||
return chart;
|
||||
}
|
||||
Reference in New Issue
Block a user