Open yantianlei opened 5 years ago
export function fetchHome(params) { return axios({ url:'/api/games/home', method:'get', params }) } 显示_currentUrl: 'http:/api/games/home?screen=1' 请求了http:/api/games/home?screen=1 但是异步请求时没有问题 我代理了'/api': { target: 'https://xxx.com/api', secure: true, changeOrigin: true, pathRewrite: { '^/api': '' }, }
export function fetchHome(params) { return axios({ url:'/api/games/home', method:'get', params }) }
'/api': { target: 'https://xxx.com/api', secure: true, changeOrigin: true, pathRewrite: { '^/api': '' }, }
export function fetchHome(params) { return axios({ url:'/api/games/home', method:'get', params }) }
显示_currentUrl: 'http:/api/games/home?screen=1' 请求了http:/api/games/home?screen=1 但是异步请求时没有问题 我代理了'/api': { target: 'https://xxx.com/api', secure: true, changeOrigin: true, pathRewrite: { '^/api': '' }, }