作者 RuoYi

升级echarts到最新版本5.4.0

@@ -40,7 +40,7 @@ @@ -40,7 +40,7 @@
40 "axios": "0.24.0", 40 "axios": "0.24.0",
41 "clipboard": "2.0.8", 41 "clipboard": "2.0.8",
42 "core-js": "3.25.3", 42 "core-js": "3.25.3",
43 - "echarts": "4.9.0", 43 + "echarts": "5.4.0",
44 "element-ui": "2.15.10", 44 "element-ui": "2.15.10",
45 "file-saver": "2.0.5", 45 "file-saver": "2.0.5",
46 "fuse.js": "6.4.3", 46 "fuse.js": "6.4.3",
@@ -39,7 +39,6 @@ export default { @@ -39,7 +39,6 @@ export default {
39 } 39 }
40 }, 40 },
41 mounted() { 41 mounted() {
42 - this.insertToBody()  
43 this.addEventClick() 42 this.addEventClick()
44 }, 43 },
45 beforeDestroy() { 44 beforeDestroy() {
@@ -56,11 +55,6 @@ export default { @@ -56,11 +55,6 @@ export default {
56 this.show = false 55 this.show = false
57 window.removeEventListener('click', this.closeSidebar) 56 window.removeEventListener('click', this.closeSidebar)
58 } 57 }
59 - },  
60 - insertToBody() {  
61 - const elx = this.$refs.rightPanel  
62 - const body = document.querySelector('body')  
63 - body.insertBefore(elx, body.firstChild)  
64 } 58 }
65 } 59 }
66 } 60 }
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 -import echarts from 'echarts' 6 +import * as echarts from 'echarts';
7 require('echarts/theme/macarons') // echarts theme 7 require('echarts/theme/macarons') // echarts theme
8 import resize from './mixins/resize' 8 import resize from './mixins/resize'
9 9
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 -import echarts from 'echarts' 6 +import * as echarts from 'echarts';
7 require('echarts/theme/macarons') // echarts theme 7 require('echarts/theme/macarons') // echarts theme
8 import resize from './mixins/resize' 8 import resize from './mixins/resize'
9 9
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 -import echarts from 'echarts' 6 +import * as echarts from 'echarts';
7 require('echarts/theme/macarons') // echarts theme 7 require('echarts/theme/macarons') // echarts theme
8 import resize from './mixins/resize' 8 import resize from './mixins/resize'
9 9
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 -import echarts from 'echarts' 6 +import * as echarts from 'echarts';
7 require('echarts/theme/macarons') // echarts theme 7 require('echarts/theme/macarons') // echarts theme
8 import resize from './mixins/resize' 8 import resize from './mixins/resize'
9 9
@@ -68,7 +68,7 @@ @@ -68,7 +68,7 @@
68 68
69 <script> 69 <script>
70 import { getCache } from "@/api/monitor/cache"; 70 import { getCache } from "@/api/monitor/cache";
71 -import echarts from "echarts"; 71 +import * as echarts from "echarts";
72 72
73 export default { 73 export default {
74 name: "Cache", 74 name: "Cache",