From a8153029af8bfaf219e215b51deb5393ddf602e3 Mon Sep 17 00:00:00 2001 From: wuyx Date: Mon, 21 Nov 2022 18:22:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0publicPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/vue.config.js b/vue.config.js index d7532e53..b7ca1def 100644 --- a/vue.config.js +++ b/vue.config.js @@ -8,20 +8,21 @@ */ const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ - // transpileDependencies: true, - devServer: { - port: 8080, - proxy: { - "/manageApi": { - // target:"http://192.168.100.208:30001", - target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 - changeOrigin: true, //表示是否改变原域名 - // secure: false, - // ws: false, //表示WebSocket协议 - pathRewrite: { - "^/manageApi": "", - }, - }, - }, - }, + publicPath: '/manage', + // transpileDependencies: true, + devServer: { + port: 8080, + proxy: { + "/manageApi": { + // target:"http://192.168.100.208:30001", + target: "http://111.231.196.214:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口 + changeOrigin: true, //表示是否改变原域名 + // secure: false, + // ws: false, //表示WebSocket协议 + pathRewrite: { + "^/manageApi": "", + }, + }, + }, + }, });