对接后台,部分已完成

This commit is contained in:
2021-12-08 14:54:13 +08:00
parent ab898dda04
commit ee44a9f77f
32 changed files with 1556 additions and 877 deletions

View File

@@ -1,8 +1,15 @@
/*
* @Author: zwq
* @Date: 2021-11-15 08:20:28
* @LastEditors: zwq
* @LastEditTime: 2021-12-06 15:34:11
* @Description:
*/
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
OPEN_PROXY: false // 是否开启代理, 重置后需重启vue-cli
OPEN_PROXY: true // 是否开启代理, 重置后需重启vue-cli
})

View File

@@ -1,3 +1,10 @@
/*
* @Author: zwq
* @Date: 2021-11-15 08:20:28
* @LastEditors: zwq
* @LastEditTime: 2021-12-07 14:48:25
* @Description:
*/
'use strict'
// Template version: 1.2.5
// see http://vuejs-templates.github.io/webpack for documentation.
@@ -14,10 +21,10 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': {
target: 'http://demo.renren.io/renren-fast/',
target: 'http://192.168.0.134:8080/',
changeOrigin: true,
pathRewrite: {
'^/proxyApi': '/'
'^/proxyApi': '/api'
}
}
},