

小程序顶部导航栏点击后调转失败是什么原因呢,是需要在后台数据库中修改请求地址还是功能没开发呢
在返回首页时后端报了一个购物车参数类型不匹配的错误,前端的请求路径是:Request URL: http://10.101.1.86:8081/api/front/cart/count?numType=undefined&type=undefined,numType和type传入了undefined的值,但感觉跟这个报错关系不大。具体报错为:
Field error in object 'cartNumRequest' on field 'numType': rejected value [undefined]; codes [typeMismatch.cartNumRequest.numType,typeMismatch.numType,typeMismatch.java.lang.Boolean,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [cartNumRequest.numType,numType]; arguments []; default message [numType]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Boolean' for property 'numType'; nested exception is java.lang.IllegalArgumentException: Invalid boolean value [undefined]]
Field error in object 'cartNumRequest' on field 'type': rejected value [undefined]; codes [StringContains.cartNumRequest.type,StringContains.type,StringContains.java.lang.String,StringContains]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [cartNumRequest.type,type]; arguments []; default message [type],[Ljava.lang.String;@4243101]; default message [无效数量类型]]" }
{
"app": "Crmeb",
"timestamp":"2026-08-14 09:52:07.918",
"level": "DEBUG",
"thread": "http-nio-8081-exec-15",
"class": "o.s.web.servlet.DispatcherServlet",
"message": "Completed 200 OK" }
【产品名称】:标准版 (Java)
【产品版本】:例:v3.0
【部署方式】:例:docker
【部署环境】:例:本地环境
【Mysql版本】:5.7
【使用终端】:小程序

