后端接口返回值是正常的,前端获取时,async,await返回是undefined,用.then()方法获取也是undefind?
接口文档使用的是swagger自动生成的ts文件,
代码:
async () => {
const authApi = new AuthApi()
const res = await authApi.apiLogoutGet()
console.log(res);
后端接口返回值是正常的,前端获取时,async,await返回是undefined,用.then()方法获取也是undefind?
接口文档使用的是swagger自动生成的ts文件,
代码:
async () => {
const authApi = new AuthApi()
const res = await authApi.apiLogoutGet()
console.log(res);
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
3 回答2.7k 阅读✓ 已解决
4 回答2.2k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
3 回答804 阅读✓ 已解决
看看请求拦截的判断条件,是不是没判到