From bc630b555653be1cb6eff37ab2da18cd31e8ef81 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期一, 13 十二月 2021 10:44:12 +0800 Subject: [PATCH] 配置页 --- vue.config.js | 39 +++++++++++++++++++-------------------- 1 files changed, 19 insertions(+), 20 deletions(-) diff --git a/vue.config.js b/vue.config.js index 5547a60..9cebf58 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,11 +40,13 @@ // } }); -// const serverUrl = "http://58.118.225.79:41243" // 缇婁簲 -const serverUrl = "http://192.168.20.189:7009"; -//const serverUrl = "http://192.168.20.10:9000"; +const serverUrl = "http://192.168.20.189:7009"; // 缇婁簲 +// const serverUrl = "http://192.168.8.10:7009"; +const serverUrl2 = "http://192.168.8.10:9000"; +// const serverUrl = "http://192.168.20.10:7009"; +// const serverUrl2 = "http://192.168.20.10:9000"; -const cir = require("circular-dependency-plugin"); +// const cir = require("circular-dependency-plugin"); module.exports = { pages, @@ -127,26 +129,23 @@ target: serverUrl, changeOrigin: true, //寮�鍚唬鐞� }, - "/temp": { - target: "http://192.168.20.10:9000", + "/iotdata": { + target: serverUrl2, changeOrigin: true, //寮�鍚唬鐞�, - pathRewrite: { - "/temp": "", - }, }, }, }, - configureWebpack: { - plugins: [ - new cir({ - exclude: /a\.js|node_modules/, - include: /dir/, - failOnError: true, - allowAsyncCycles: false, - cwd: process.cwd(), - }), - ], - }, + // configureWebpack: { + // plugins: [ + // new cir({ + // exclude: /a\.js|node_modules/, + // include: /dir/, + // failOnError: true, + // allowAsyncCycles: false, + // cwd: process.cwd(), + // }), + // ], + // }, /* css:{ loaderOptions:{ scss:{ -- Gitblit v1.8.0