From 6bcd1b4696f14b2eb6faba8ece3a041d5e128243 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 09 四月 2024 20:44:10 +0800
Subject: [PATCH] 暂存
---
vue.config.js | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 1ef0d9a..8fdc9eb 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,6 +1,13 @@
+/*
+ * @Date: 2024-03-23 09:49:06
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-03-28 11:34:07
+ * @FilePath: /cps-web/vue.config.js
+ */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
+ lintOnSave: false,
//璁剧疆涓虹┖鎵撳寘鍚庝笉鍒嗘洿鐩綍杩樻槸澶氱骇鐩綍
publicPath:'',
//build缂栬瘧鍚庡瓨鏀鹃潤鎬佹枃浠剁殑鐩綍
@@ -19,7 +26,14 @@
target: process.env.VUE_APP_API_BASEURL,
ws: true,
pathRewrite: {
- '^/api': '/'
+ // '^/api': '/'
+ }
+ },
+ '/myapi': {
+ target: process.env.VUE_APP_API_MYBASEURL,
+ ws: true,
+ pathRewrite: {
+ '^/myapi': '/'
}
}
}
--
Gitblit v1.9.3