From 1cc03d03d9085f59492967a7a3160d95a30bd4e5 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 24 三月 2024 10:47:08 +0800
Subject: [PATCH] update
---
vue.config.js | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 1ef0d9a..13af8eb 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,3 +1,9 @@
+/*
+ * @Date: 2024-03-23 09:49:06
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-03-23 18:21:49
+ * @FilePath: /cps-web/vue.config.js
+ */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
@@ -19,7 +25,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