扫码关注官方订阅号
ajax请求中的地址修改为 '/api/movie/in_theaters' 或 'http://localhost:8880/api/mov...'
配了代理,在发请求的时候就不需要带上域名了。改为这样:
_this.axios.get('/api/movie/in_theater')
请求地址直接写/api/movie/in_theaters,而不是豆瓣的完整接口
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
ajax请求中的地址修改为 '/api/movie/in_theaters' 或 'http://localhost:8880/api/mov...'
配了代理,在发请求的时候就不需要带上域名了。
改为这样:
请求地址直接写/api/movie/in_theaters,而不是豆瓣的完整接口