在网络请求中 定义的变量在接收传过来的参数是 往往会出现undefined
例如:
const res = respones.data.a
// 报错 :data is not undefined
解决办法
const res = respones.data?.a
在网络请求中 定义的变量在接收传过来的参数是 往往会出现undefined
例如:
const res = respones.data.a
// 报错 :data is not undefined
解决办法
const res = respones.data?.a