diff --git a/src/utils/comm.js b/src/utils/comm.js index cc1f282..05f6e0a 100644 --- a/src/utils/comm.js +++ b/src/utils/comm.js @@ -34,20 +34,6 @@ export function ecMaxVal(arr){ return narr; } -// websoket -// 查询的参数封装成json -export function rtsocket(param){ - const ws = new WebSocket("ws://10.97.121.2/ws"); - const rtdata={}; - ws.onopen = function() { - ws.send(JSON.stringify(param)) - }; - ws.onmessage = function(e) { - return JSON.parse(e.data); - // rtdata = e.data - - }; -} // 数字滚动效果 export function numberGrow (ele,value) { diff --git a/vue.config.js b/vue.config.js index 9bce91a..ce1c1d4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,12 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ + // webpack setting + configureWebpack:config=>{ + config.devtool = false + }, + productionSourceMap:false, + transpileDependencies: true, lintOnSave: false, publicPath: './'