From cbde2b4fb938ce62c204390544c52935906c8962 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期二, 09 一月 2024 18:59:29 +0800 Subject: [PATCH] 11 --- vue.config.js | 46 +++++++++++----------------------------------- 1 files changed, 11 insertions(+), 35 deletions(-) diff --git a/vue.config.js b/vue.config.js index 720a4d2..893c1a6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,43 +1,19 @@ -/* - * @Author: 鐜嬫棴 1377869194@qq.com - * @Date: 2023-05-08 13:52:20 - * @LastEditors: 鐜嬫棴 1377869194@qq.com - * @LastEditTime: 2023-05-08 14:17:30 - * @FilePath: \LFWEB_NEW\vue.config.js - * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE - */ -const path = require("path") -const resolve = dir => path.join(__dirname, dir) module.exports = { lintOnSave: false, publicPath: "./", + outputDir: process.env.outputDir, devServer: { - host: 'localhost',//鏈湴鍦板潃 - port: '8080',//绔彛鍙� - hot: true,//鐑洿鏂拌嚜鍔ㄥ埛鏂� - open: true,//鑷姩鎵撳紑 - overlay: { //褰撳嚭鐜扮紪璇戦敊璇垨璀﹀憡鏃讹紝鍦ㄦ祻瑙堝櫒涓樉绀哄叏灞忚鐩栥�傚彧鏄剧ず閿欒淇℃伅涓嶆彁绀鸿鍛婃儏鍐甸檺鍒舵槸 - warning: false, - error: true - }, + //proxy: "http://192.168.20.70:8001/" + // // 閰嶇疆璺ㄥ煙-璇锋眰鍚庣鐨勪唬鐞嗘帴鍙� proxy: { - "/aaaa": { - target: 'http:localhost/aaaa',//浠g悊鍦板潃 鍑℃槸浣跨敤/api - changeOrigin: true,//鍏佽璺ㄥ煙璇锋眰 - secure: false, - pathRewrite: { //閲嶅啓璺緞 鏇挎崲璇锋眰鍦板潃涓殑鎸囧畾璺緞 - ['^/aaaa']: '' //灏嗚姹傚湴鍧�涓殑api鏇挎崲涓虹┖ - } - } - } - }, - - configureWebpack: { - resolve: { - alias: { - "@": resolve("src"), + "/JiangSu": { + target: "http://localhost:8080/JiangSu", //瀵瑰簲鑷繁鐨勬帴鍙� + changeOrigin: true, + ws: true, + pathRewrite: { + "^/JiangSu": "", + }, }, }, }, - -} +}; -- Gitblit v1.9.3