error
酱酱子~
转到掘金喽,名字叫‘酱酱子耶’
展开
-
GET http://pcapi-xiaotuxian-front-devtest.itheima.net/category--post请求却变成get请求的原因
经过分析,我的代码是post请求,并且这个接口也只能使用post请求,使用get请求就会报错,如下,说明我的post没起作用,那么错误应该出现在request.js里面,果然,由于自己粗心,回车时。最近写项目时被这个错误给整懵了,刚开始以为是接口的问题,后来测试发现接口没有问题,就离谱,错误如下图。就好了,哎,自己真的太粗心了,希望我这个错误对你们有帮助~ 奥利给!method写成的methods,导致post请求失败。原创 2023-05-10 14:17:04 · 975 阅读 · 0 评论 -
Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘brands)
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'brands)原创 2023-04-26 17:44:29 · 5148 阅读 · 0 评论