报错内容:
[Vue warn]: Error in render: “TypeError: Cannot read property ‘length’ of null”
found in
—> at uni_modules/uview-ui/components/u-textarea/u-textarea.vue
at uni_modules/uview-ui/components/u–textarea/u–textarea.vue
mp.runtime.esm.js?3240:5840 TypeError: Cannot read property ‘length’ of null
解决:
找到uview源码中的u-textarea组件,发现这里是直接判断的字符长度,所以会报错
修改为: