uniapp报错:vue.runtime.esm.js:619 [Vue warn]: Invalid prop: type check failed for prop "count". Expected Number with value 1, got String with value "1".

  这是组件内报错,将Type类型改为[Number, String]即可

props: {
	count: {
		type: Number,
		default: 0
	},
}

 

改为

 

props: {
	count: {
		type: [Number, String],
		default: 0
	},
}

  

uniapp报错:vue.runtime.esm.js:619 [Vue warn]: Invalid prop: type check failed for prop "count". Expected Number with value 1, got String with value "1".

上一篇:微信小程序之豆瓣电影


下一篇:苹果手机的SB系列(8)为什么没有短信全部删除?