From 085fa2fb257e9f11f8f6d34bf12e2dc281c36b4d Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期四, 09 二月 2023 11:28:21 +0800 Subject: [PATCH] 2023/2/9 肖辉 修改部门管理 --- vue.config.js | 21 +++++++-------------- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/vue.config.js b/vue.config.js index afd301f..d97f668 100644 --- a/vue.config.js +++ b/vue.config.js @@ -33,14 +33,15 @@ host: 'localhost', port: port, open: true, + headers: { + "Access-Control-Allow-Origin": "*", + }, proxy: { // 璺ㄥ煙閰嶇疆 - [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - changeOrigin: true, - pathRewrite: { - ['^' + process.env.VUE_APP_BASE_API]: '' - } + "/sccg": { + target: `http://42.193.1.25/`, + // target: `http://127.0.0.1:8082/`, + changeOrigin: true } }, // disableHostCheck: true @@ -94,14 +95,6 @@ config .when(process.env.NODE_ENV !== 'development', config => { - // config - // .plugin('ScriptExtHtmlWebpackPlugin') - // .after('html') - // .use('script-ext-html-webpack-plugin', [{ - // // `runtime` must same as runtimeChunk name. default is `runtime` - // inline: /runtime\..*\.js$/ - // }]) - // .end() config .optimization.splitChunks({ chunks: 'all', -- Gitblit v1.8.0