From 64d7ac55d2ef98c33bcde6c8176c9f82ae5df5d4 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 15 May 2023 17:41:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- vue.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 27ca634..98e61c1 100644 --- a/.env.development +++ b/.env.development @@ -4,8 +4,8 @@ VUE_APP_TITLE = UDI管理系统 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 -VUE_APP_BASE_API = '/dev-api' +# 若依管理系统/开发环境 http://api.clborch.com:8190 +VUE_APP_BASE_API = 'http://192.168.0.195:9991' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/' diff --git a/vue.config.js b/vue.config.js index 6ed8a32..279d836 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,7 +7,7 @@ function resolve(dir) { const CompressionPlugin = require("compression-webpack-plugin"); -const name = process.env.VUE_APP_TITLE || "UDI协调平台"; //网页标题 +const name = process.env.VUE_APP_TITLE || "UDI管理系统"; // 网页标题 const port = process.env.port || process.env.npm_config_port || 80; // 端口 @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://api.clborch.com:8190`, + target: process.env.VUE_APP_BASE_API, changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",