diff --git a/.babelrc b/.babelrc index d530c00fd4f2ea795f8aa92053f2fe131e4cbf3a..e5e80efce4bbca3d554b95788152780ad5c23c09 100644 --- a/.babelrc +++ b/.babelrc @@ -1,14 +1,27 @@ { "presets": [ - ["env", { - "modules": false, - "targets": { - "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] + [ + "env", + { + "modules": false, + "targets": { + "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] + } } - }], + ], "stage-2" ], - "plugins": ["transform-vue-jsx", "transform-runtime"], + "plugins": [ + "transform-vue-jsx", + "transform-runtime", + [ + "component", + { + "libraryName": "element-ui", + "styleLibraryName": "theme-chalk" + } + ] + ], "env": { "test": { "presets": ["env", "stage-2"] diff --git a/config/index.js b/config/index.js index 442c644cd17c96399c2da3d2fd35021b436e8813..a0bb03c4af2bac1dcf8f7d101aac622f0b2ae499 100644 --- a/config/index.js +++ b/config/index.js @@ -11,7 +11,7 @@ module.exports = { assetsPublicPath: "/", proxyTable: { "/api/": { - target: "http://yongma16.xyz/", //后端接口地址 + target: "https://yongma16.xyz/", //后端接口地址 ws: true, //接受websocket请求 changeOrigin: true, //是否允许跨越 chunkOrigins: true, @@ -20,7 +20,7 @@ module.exports = { }, }, "/ws_api/": { - target: "ws://yongma16.xyz/ws/webchat/", + target: "wss://yongma16.xyz/ws/webchat/", ws: true, //接受websocket请求 changeOrigin: true, //是否允许跨越 chunkOrigins: true, @@ -58,7 +58,7 @@ module.exports = { // https://vue-loader.vuejs.org/en/options.html#cachebusting cacheBusting: true, - cssSourceMap: true, + cssSourceMap: false, }, build: { @@ -74,7 +74,7 @@ module.exports = { * Source Maps */ - productionSourceMap: true, + productionSourceMap: false, // https://webpack.js.org/configuration/devtool/#production devtool: "#source-map", diff --git a/index.html b/index.html index 8bb680880497bf15794d68d466c8f3c2a34e776d..af7df620cc6270932cb2ac20a8580a027549e93e 100644 --- a/index.html +++ b/index.html @@ -14,8 +14,7 @@ rel="stylesheet" href="myblog_static/utils/fx_background/css/core.css" /> - - + diff --git a/src/components/Login.vue b/src/components/Login.vue index 8b9a4f6b207abfe826d8aec1933563eced79311c..10c807123c3f4569b0ed0199523d026f5730dd99 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -61,7 +61,7 @@ export default { } const validatePass = (rule, value, callback) => { if (value === '') { - callback(new Error('请输入密码')) + callback(new Error('密码不能为空')) } else { callback() } diff --git a/src/components/Onlinewebsocket.vue b/src/components/Onlinewebsocket.vue index 8e4646aaf5c66e949ccc917a1dda2da487a28286..7d15e7c8de25bf08bd7902877ad38b5afeb6819b 100644 --- a/src/components/Onlinewebsocket.vue +++ b/src/components/Onlinewebsocket.vue @@ -32,7 +32,7 @@ >
-