From b749238a0a0332751d761644ddc3728550f02373 Mon Sep 17 00:00:00 2001 From: yma16 <17685043634@163.com> Date: Sun, 24 Jul 2022 21:31:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5elemen?= =?UTF-8?q?t=20echarts=20=20=E8=B7=AF=E7=94=B1=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .babelrc | 6 +- config/index.js | 6 +- src/App.vue | 4 - src/components/Article.vue | 538 ++++++++++++++++----------------- src/importEchartsComponents.js | 11 +- src/importElement.js | 13 +- src/main.js | 21 +- src/router/index.js | 69 +++-- src/utils/auth.js | 8 +- src/utils/index.js | 222 +++++++------- src/utils/util.cookies.js | 19 +- 11 files changed, 455 insertions(+), 462 deletions(-) diff --git a/.babelrc b/.babelrc index e5e80ef..668ce90 100644 --- a/.babelrc +++ b/.babelrc @@ -12,15 +12,15 @@ "stage-2" ], "plugins": [ - "transform-vue-jsx", - "transform-runtime", [ "component", { "libraryName": "element-ui", "styleLibraryName": "theme-chalk" } - ] + ], + "transform-vue-jsx", + "transform-runtime" ], "env": { "test": { diff --git a/config/index.js b/config/index.js index a0bb03c..2727aca 100644 --- a/config/index.js +++ b/config/index.js @@ -58,26 +58,22 @@ module.exports = { // https://vue-loader.vuejs.org/en/options.html#cachebusting cacheBusting: true, - cssSourceMap: false, + cssSourceMap: true, }, build: { // Template for index.html index: path.resolve(__dirname, "../dist/index.html"), - // Paths assetsRoot: path.resolve(__dirname, "../dist"), assetsSubDirectory: "myblog_static", assetsPublicPath: "./", - /** * Source Maps */ - productionSourceMap: false, // https://webpack.js.org/configuration/devtool/#production devtool: "#source-map", - // Gzip off by default as many popular myblog_static hosts such as // Surge or Netlify already gzip all myblog_static assets for you. // Before setting to `true`, make sure to: diff --git a/src/App.vue b/src/App.vue index ef79ef8..fa7c893 100644 --- a/src/App.vue +++ b/src/App.vue @@ -187,9 +187,6 @@ export default { .post(this.baseUrl + 'count/add/', { ip: clientIp }) - .then((res) => { - console.log(res) - }) .catch((e) => { throw Error(e) }) @@ -210,7 +207,6 @@ export default { }, handleOpen (key, keyPath) { - console.log(key, keyPath) if (key === '3') { this.chat_flag = true this.onlineWebsocket() // 调用跳转 diff --git a/src/components/Article.vue b/src/components/Article.vue index 6db3025..f170dbf 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -214,290 +214,290 @@