Skip to content

Commit 843e5a9

Browse files
author
pnck
authored
update: update echarts version to 5.x (#1047)
1 parent a8d41e2 commit 843e5a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@element-plus/icons-vue": "^0.2.7",
1414
"axios": "^0.19.2",
1515
"core-js": "^3.6.5",
16-
"echarts": "4.9.0",
16+
"echarts": "5.3.2",
1717
"element-plus": "2.0.1",
1818
"highlight.js": "^10.6.0",
1919
"marked": "^2.0.0",

web/src/view/dashboard/dashboardCharts/echartsLine.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</template>
1212
<script setup>
1313
import * as echarts from 'echarts'
14-
import { nextTick, onMounted, onUnmounted, ref } from 'vue'
15-
import 'echarts/theme/macarons'
14+
import { nextTick, onMounted, onUnmounted, ref , shallowRef } from 'vue'
15+
// import 'echarts/theme/macarons'
1616
1717
var dataAxis = []
1818
for (var i = 1; i < 13; i++) {
@@ -40,10 +40,10 @@ for (var i = 0; i < data.length; i++) {
4040
dataShadow.push(yMax)
4141
}
4242
43-
const chart = ref(null)
43+
const chart = shallowRef(null)
4444
const echart = ref(null)
4545
const initChart = () => {
46-
chart.value = echarts.init(echart.value, 'macarons')
46+
chart.value = echarts.init(echart.value, /*'macarons'*/)
4747
setOptions()
4848
}
4949
const setOptions = () => {

0 commit comments

Comments
 (0)