1234567891011121314151617 |
- // import { config } from './config/config';
- // let apiBaseurl='http://172.16.90.64:9093/forest-admin';
- // // 解决跨域
- module.exports = {
- devServer: {
- proxy: { //配置跨域
- '/api': {
- target: 'http://172.16.90.3:9093/forest-admin/', //这里后台地址
- changOrigin: true, //允许跨域
- pathRewrite: {
- '^/api': ''
- }
- },
- }
- },
- }
|