lrf 1 anno fa
parent
commit
0d926cfe28
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      vue.config.js

+ 3 - 2
vue.config.js

@@ -1,10 +1,11 @@
 const path = require('path');
 const question = path.resolve(__dirname, '../question-examine');
 const frame = path.resolve(__dirname, '../frame');
+const ip = 'http://127.0.0.1';
 module.exports = {
   publicPath: process.env.NODE_ENV === 'development' ? '/' : '/msgconfirm',
   outputDir: 'msgconfirm',
-  configureWebpack: config => {
+  configureWebpack: (config) => {
     Object.assign(config, {
       // 开发生产共同配置
       resolve: {
@@ -37,7 +38,7 @@ module.exports = {
         ws: true,
       },
       '/api': {
-        target: 'http://jytz.jilinjobs.cn',
+        target: ip,
         changeOrigin: true,
         ws: true,
       },