Kaynağa Gözat

处理内存泄露警告

凉纪 2 yıl önce
ebeveyn
işleme
64a87e3f42
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      vue.config.js

+ 3 - 2
vue.config.js

@@ -3,12 +3,13 @@ const defaultSettings = require('./src/config/index.js')
 const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
 
 const resolve = dir => path.join(__dirname, dir)
-// page title
+// page titley
 const name = defaultSettings.title;
 // 生产环境,测试和正式
 const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
 
 const { defineConfig } = require('@vue/cli-service')
+require('events').EventEmitter.defaultMaxListeners = 0;
 // externals
 // const externals = {
 //   vue: 'Vue',
@@ -119,7 +120,7 @@ module.exports = defineConfig({
         }
       },
       '/test': {
-        target: "http://47.92.229.224:8080",
+        target: "http://10.87.10.91:8080",
         // ws:true,
         changOrigin:true,
         pathRewrite:{