TypeError: Cannot read properties of undefined (reading ‘then‘)

The reason for this error is that it is related to:

 There is no return value when the API is encapsulated, and there is no return value when the interface is called, and the content before then is false.

The method to modify this bug is also very simple, just change the curly braces into parentheses, and then return the value after they are changed into parentheses.

There will be no error reporting.

Everyone should be careful when writing code~~ Don’t be so sloppy like the editor o(╥﹏╥)o 

Guess you like

Origin blog.csdn.net/m0_50013284/article/details/125957380