From 947d903af1aaa675a0d055668893d4be335e5db0 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 10 七月 2023 16:17:36 +0800 Subject: [PATCH] 修改前端页面 --- vue.config.js | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index 419778d..552ad37 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,16 +1,27 @@ +var path = require("path") module.exports = { baseUrl: './', + configureWebpack: { + resolve: { + alias: { + '@': path.join(__dirname, 'src') + } + } + }, assetsDir: 'static', productionSourceMap: false, devServer: { + sockHost: 'localhost', + 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