Browse Source

更改项目设置

master
453530270@qq.com 3 years ago
parent
commit
158b48bb4a
  1. 14
      src/utils/comm.js
  2. 6
      vue.config.js

14
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) {

6
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: './'

Loading…
Cancel
Save