在封装axios
请求根据error.response.status
取自己定义的索引值时,提示警告:
可以在我们的tsconfig.json
中设置"suppressImplicitAnyIndexErrors": true
就可以了
TS:元素隐式具有 “any“ 类型,因为类型为 “any“ 的表达式不能用于索引类型
最新推荐文章于 2024-06-07 17:07:55 发布
在封装axios
请求根据error.response.status
取自己定义的索引值时,提示警告:
可以在我们的tsconfig.json
中设置"suppressImplicitAnyIndexErrors": true
就可以了