From 879079dda72f3a2f529204e87b382558944fcc51 Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期二, 09 四月 2024 18:30:46 +0800 Subject: [PATCH] 1 --- 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