1、例如下方圖提示的樣子 image.png 2、首先需要在vue.config.js中配置轉(zhuǎn)發(fā)代理 image.png 3、放置接口的地方 image.png 4、在url.js中 image.png image.png 5、重啟項(xiàng)目,就可以啦?。?!