From 158b48bb4a4491e2fb60bc686f66752b59d53c3e Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Sun, 13 Aug 2023 16:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A1=B9=E7=9B=AE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/comm.js | 14 -------------- vue.config.js | 6 ++++++ 2 files changed, 6 insertions(+), 14 deletions(-) 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: './'