From c55d9376565a78ce31a5b8d78dad89df16c2628e Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期四, 18 一月 2024 23:34:54 +0800 Subject: [PATCH] 删除完 更新 --- config/index.js | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/config/index.js b/config/index.js index b4f0d13..d39dff9 100644 --- a/config/index.js +++ b/config/index.js @@ -1,3 +1,9 @@ +/* + * @Date: 2023-12-20 20:21:29 + * @LastEditors: Sneed + * @LastEditTime: 2024-01-18 22:47:36 + * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/config/index.js + */ 'use strict' // Template version: 1.2.6 // see http://vuejs-templates.github.io/webpack for documentation. @@ -11,14 +17,18 @@ assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { - '/api': { - // target: 'http://172.20.10.8:8087/', - // target: 'http://192.168.230.143:8087/', - target: 'http://localhost:8087/', - // target: 'http://111.230.17.122:8087/', + '/mdc': { + target: 'http://116.63.148.72:8088/', changeOrigin: true, pathRewrite: { - '^/api': '/' + '^/mdc': '/mdc' + } + }, + '/upload': { + target: 'http://116.63.148.72:8088/', + changeOrigin: true, + pathRewrite: { + '^/upload': '/upload' } } }, @@ -34,7 +44,7 @@ // Use Eslint Loader? // If true, your code will be linted during bundling and // linting errors and warnings will be shown in the console. - useEslint: true, + useEslint: false, // If true, eslint errors and warnings will also be shown in the error overlay // in the browser. showEslintErrorsInOverlay: false, @@ -62,7 +72,7 @@ build: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), - + test: path.resolve(__dirname, '../dist/test.html'), // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', -- Gitblit v1.9.3