From 0f17dfdec7d23c4003cf5814238b00442a2878ab Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 8 Oct 2023 22:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/babel.config.js | 8 --- frontend/package.json | 1 - frontend/public/index.html | 20 ++++++- frontend/src/App.vue | 19 +++++++ frontend/src/i18n.js | 3 -- frontend/src/layout/index.vue | 15 +----- frontend/src/main.js | 60 +++------------------ frontend/src/views/Room.vue | 25 ++++++--- frontend/src/views/StyleGenerator/index.vue | 5 +- frontend/vue.config.js | 9 ++++ 10 files changed, 75 insertions(+), 90 deletions(-) diff --git a/frontend/babel.config.js b/frontend/babel.config.js index 3de35ba..e955840 100644 --- a/frontend/babel.config.js +++ b/frontend/babel.config.js @@ -1,13 +1,5 @@ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' - ], - plugins: [ - [ - 'component', { - 'libraryName': 'element-ui', - 'styleLibraryName': 'theme-chalk' - } - ] ] } diff --git a/frontend/package.json b/frontend/package.json index 9ef465d..f23fb4f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,7 +24,6 @@ "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", - "babel-plugin-component": "^1.1.1", "eslint": "^7.32.0", "eslint-plugin-vue": "^9.16.1" }, diff --git a/frontend/public/index.html b/frontend/public/index.html index b564335..30e2c34 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -1,5 +1,5 @@ - + @@ -8,6 +8,24 @@ blivechat + + <% if (process.env.NODE_ENV === 'production') { %> + + + + + + + + <% } else { %> + + + + + + + + <% } %>