vue.config.js 369 B

1234567891011121314151617
  1. // import { config } from './config/config';
  2. // let apiBaseurl='http://172.16.90.64:9093/forest-admin';
  3. // // 解决跨域
  4. module.exports = {
  5. devServer: {
  6. proxy: { //配置跨域
  7. '/api': {
  8. target: 'http://172.16.90.3:9093/forest-admin/', //这里后台地址
  9. changOrigin: true, //允许跨域
  10. pathRewrite: {
  11. '^/api': ''
  12. }
  13. },
  14. }
  15. },
  16. }