From 092da473fa17f46672b7494dbfcb07185e1fab56 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 21 十一月 2023 10:41:28 +0800 Subject: [PATCH] IndexXTYH页面修改 --- vue.config.js | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index 5921df5..6b16215 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,15 +1,26 @@ +var path = require("path") module.exports = { baseUrl: './', + configureWebpack: { + resolve: { + alias: { + '@': path.join(__dirname, 'src') + } + } + }, assetsDir: 'static', productionSourceMap: false, devServer: { + sockHost: 'localhost', + port: 8082, + disableHostCheck: true, proxy: { - '/api':{ - target:'http://183.196.93.178', - //target:'http://127.0.0.1', + '/':{ + //target:'http://183.196.93.178', + target:'http://127.0.0.1:8089', changeOrigin:true, pathRewrite:{ - '/api':'' + '/':'' } } } -- Gitblit v1.9.1