目前的措施是先将JS的Boolean类型转化成字符串类型
wx.uploadFile的表单数据含Boolean值时会变成[[object Boolean]]?微信开发者工具Stable 1.06.2405010 调试基础库3.4.5 JS代码: let tmp = res.tempFiles[0].tempFilePath; wx.uploadFile({ url: `${BASE_URL}/test`, name: 'file', filePath: tmp, formData: { // 表单Boolean param: true }, success: res => { console.log(res); }, fail: err => { console.log(err); } }); 后端代码: @RestController @RequestMapping("/test") public class TestController { @PostMapping public ApiResponse testUpload(@RequestParam MultipartFile file, @RequestParam Boolean param) { return ApiResponse.success(); } } 报错: [图片] { msg: "[2024-06-12 23:02:05.784]: (MethodArgumentTypeMismatchException) Failed to convert value of type 'java.lang.String' to required type 'java.lang.Boolean'; Invalid boolean value [[object Boolean]]" }
06-13手指触摸van-cell区域的时候滚动不了,但是其他区域滚动的了,是因为事件的原因吗?
为什么Vant-UI下的van-tabs滚动不了?// wxml <view class="view_2"> <van-tabs active="{{ active }}" bind:change="onChange" color="#144a9e"> <van-tab title="xxx"> <block wx:for="{{DocumentList2}}" wx:key="index" class="DucumentList" data-index="{{ index }}"> <van-cell title="{{item.filename}}" label="{{item.modifyTime}}" bind:click="cellTo2" data-index="{{index}}"> //... </van-cell> </block> </van-tab> </van-tabs> </van-tabs> </view> // wxss .view_2 { width: 100%; border-top-left-radius: 50rpx; border-top-right-radius: 50rpx; background-color: white; /* background: #f0eeed; */ }
2023-06-06