Closed idranme closed 9 months ago
If you are going to catch that error, you MUST handle it rather than leave it blank in the catch
block.
If you are going to catch that error, you MUST handle it rather than leave it blank in the
catch
block.
changed
你是不是应该处理它,而不是单纯 warn 一下?这里的 res.data.info 是不可解析的吗?
更改了
你是不是应该处理它,而不是单纯 warn 一下?这里的 res.data.info 是不可解析的吗?
res.data.info
有两种意外的类型,一个是 undefined,另一个是 object
res.data.info
有两种意外的类型,一个是 undefined,另一个是 object
Then what does JSON.parse()
do, suppose that it can only be undefined or object?
Then what does
JSON.parse()
do, suppose that it can only be undefined or object?
throws an error
fix #222