From aa54b5afda598050531d22e462b12a0f7c7350d6 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 23 三月 2024 20:37:55 +0800
Subject: [PATCH] update
---
vue.config.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 1ef0d9a..095362b 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({
@@ -21,6 +27,13 @@
pathRewrite: {
'^/api': '/'
}
+ },
+ '/myapi': {
+ target: process.env.VUE_APP_API_MYBASEURL,
+ ws: true,
+ pathRewrite: {
+ '^/myapi': '/'
+ }
}
}
},
--
Gitblit v1.9.3