@@ -30,7 +30,10 @@ module.exports = {
proxyTable: {
'/o2o': {
target: apiPath+'/index.php?r=', //你的目标域名
- changeOrigin: true
+ changeOrigin: true,
+ pathRewrite: {
+ '^/o2o': ''
+ }
},
// CSS Sourcemaps off by default because relative paths are "buggy"
@@ -1,5 +1,5 @@
import axios from 'axios'
-let apiPath = 'http://apitest.yiguanjia.me/index.php?r='
+let apiPath = 'http://commontest.yiguanjia.me/index.php?r='
// let apiPath = ''
var formData = new FormData()
formData.append('user_id', '57e238929f5160d6048b456d')