Browse Source

打包内存报错/echarts主题报错

master
xuhuajiao 3 years ago
parent
commit
1fa8e175b6
  1. 2
      src/main.js
  2. 2
      src/views/components/echarts/typePie.vue
  3. 9
      vue.config.js

2
src/main.js

@ -24,8 +24,6 @@ import './assets/iconfonts/iconfont.js'
import VueHighlightJS from 'vue-highlightjs' import VueHighlightJS from 'vue-highlightjs'
import 'highlight.js/styles/atom-one-dark.css' import 'highlight.js/styles/atom-one-dark.css'
import './assets/echarts/echartDark.js'
import App from './App' import App from './App'
import store from './store' import store from './store'
import router from './router/routers' import router from './router/routers'

2
src/views/components/echarts/typePie.vue

@ -49,7 +49,7 @@ export default {
methods: { methods: {
drawChart() { drawChart() {
const chartDom = document.getElementById('maintype') const chartDom = document.getElementById('maintype')
this.chart = echarts.init(chartDom, 'dark')
this.chart = echarts.init(chartDom, 'light')
let option = null let option = null
option = { option = {
tooltip: { tooltip: {

9
vue.config.js

@ -41,14 +41,19 @@ module.exports = {
} }
}, },
configureWebpack: { 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, name: name,
resolve: { resolve: {
alias: { alias: {
'@': resolve('src'), '@': resolve('src'),
'@crud': resolve('src/components/Crud') '@crud': resolve('src/components/Crud')
} }
},
performance: {
hints: 'warning',
// 入口起点的最大体积
maxEntrypointSize: 50000000,
// 生成文件的最大体积
maxAssetSize: 30000000
} }
}, },
chainWebpack(config) { chainWebpack(config) {

Loading…
Cancel
Save