1.uni-app在小程序开发者工具运行:TypeError: Cannot read property ‘forceUpdate‘ of undefined
问题是因为uniapp项目没配置小程序appid
解决方法:
2.uni-app报错:Invalid prop: custom validator check failed for prop “navigationBarTextStyle“
解决方法:
"globalStyle": {
"navigationBarTextStyle": "#1296db",//这里配置错误 应该为white或者black
"navigationBarTitleText": "消防项目",
"navigationBarBackgroundColor": "#1296db",
"backgroundColor": "#ffffff"
}
3.uniapp 查询输入框输入中文传到后台异常
正常输入框的内容是”水表“,传到后台是名称如下:
解决方法:请求方法改为post表单格式就可以了
header: { 'content-type': 'application/x-www-form-urlencoded'}