From c09dcac4b1f1a5c929943dd163fe72132b51ff41 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期四, 04 一月 2024 15:56:59 +0800 Subject: [PATCH] 下载送达回证 --- vue.config.js | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index 419778d..6b16215 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,16 +1,28 @@ +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://192.168.0.146', + '/':{ + //target:'http://183.196.93.178', + target:'http://127.0.0.1:8089', changeOrigin:true, pathRewrite:{ - '/api':'' + '/':'' } } } } -} \ No newline at end of file +} -- Gitblit v1.9.1