diff --git a/src/main.js b/src/main.js index a164832..30f914a 100644 --- a/src/main.js +++ b/src/main.js @@ -24,8 +24,6 @@ import './assets/iconfonts/iconfont.js' import VueHighlightJS from 'vue-highlightjs' import 'highlight.js/styles/atom-one-dark.css' -import './assets/echarts/echartDark.js' - import App from './App' import store from './store' import router from './router/routers' diff --git a/src/views/components/echarts/typePie.vue b/src/views/components/echarts/typePie.vue index 5bc9cfb..82caf68 100644 --- a/src/views/components/echarts/typePie.vue +++ b/src/views/components/echarts/typePie.vue @@ -49,7 +49,7 @@ export default { methods: { drawChart() { const chartDom = document.getElementById('maintype') - this.chart = echarts.init(chartDom, 'dark') + this.chart = echarts.init(chartDom, 'light') let option = null option = { tooltip: { diff --git a/vue.config.js b/vue.config.js index 90f8e30..5372b5f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -41,14 +41,19 @@ module.exports = { } }, configureWebpack: { - // provide the app's title in webpack's name field, so that - // it can be accessed in index.html to inject the correct title. name: name, resolve: { alias: { '@': resolve('src'), '@crud': resolve('src/components/Crud') } + }, + performance: { + hints: 'warning', + // 入口起点的最大体积 + maxEntrypointSize: 50000000, + // 生成文件的最大体积 + maxAssetSize: 30000000 } }, chainWebpack(config) {