From f1567590acc293108167b06e2ef400c9b8064e7f Mon Sep 17 00:00:00 2001 From: lin-xin <2981207131@qq.com> Date: Wed, 1 Mar 2017 11:28:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 10 +--------- src/components/page/Upload.vue | 1 + 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/config/index.js b/config/index.js index 04e8ca2..edf531f 100644 --- a/config/index.js +++ b/config/index.js @@ -27,15 +27,7 @@ module.exports = { autoOpenBrowser: true, assetsSubDirectory: 'static', assetsPublicPath: '/', - proxyTable: { - '/api':{ - target:'http://jsonplaceholder.typicode.com', - changeOrigin:true, - pathRewrite:{ - '^/api':'' - } - } - }, + proxyTable: {}, // CSS Sourcemaps off by default because relative paths are "buggy" // with this option, according to the CSS-Loader README // (https://github.com/webpack/css-loader#sourcemaps) diff --git a/src/components/page/Upload.vue b/src/components/page/Upload.vue index 6c78dae..a00094b 100644 --- a/src/components/page/Upload.vue +++ b/src/components/page/Upload.vue @@ -41,6 +41,7 @@