|
@@ -94,7 +94,13 @@ export default {
|
|
|
return result;
|
|
|
},
|
|
|
initChart() {
|
|
|
- let themeName = this.$store.state.themeName.split(' ')[1];
|
|
|
+ let themeName = '';
|
|
|
+ let theme = this.$store.state.themeName;
|
|
|
+ if(theme == 'dark' || theme == 'light'){
|
|
|
+ themeName = theme;
|
|
|
+ }else{
|
|
|
+ themeName = theme.split(' ')[1];
|
|
|
+ }
|
|
|
let chart = echarts.init(this.$el);
|
|
|
let maxValue = -1;
|
|
|
|