axios -mock-adapter可以用来拦截http请求,并模拟响应,使用起来也很简单,比如你想模拟下服务器返回个500错误,你可以这么写:. 1 import axios from ' ...
確定! 回上一頁