ant pro 2.0配置代理請求後臺數據,不用默認的mock數據

經過自身實踐,這樣配置能夠請求到後臺數據,在config下的config.js下配置如下代碼: // 接口代理示例 proxy: { "/SCMAppService": { "target": "http://localhost:8080/", "changeOrigin": true, }, },
相關文章
相關標籤/搜索