Browse Source

合并冲突

lin-xin 9 years ago
parent
commit
f1567590ac
2 changed files with 2 additions and 9 deletions
  1. 1 9
      config/index.js
  2. 1 0
      src/components/page/Upload.vue

+ 1 - 9
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)

+ 1 - 0
src/components/page/Upload.vue

@@ -41,6 +41,7 @@
 </template>
 
 <script>
+    import axios from 'axios';
     import VueCoreImageUpload  from 'vue-core-image-upload';
     export default {
         data: function(){