其他分享
首页 > 其他分享> > AVUE "productCount is not a string"

AVUE "productCount is not a string"

作者:互联网

原文:
https://blog.csdn.net/qq_37000055/article/details/100926323
https://segmentfault.com/q/1010000009272833

代码是生成的,遇到保存int类型的时候就会js警告

修改前

{
  label: "产品数量",
  prop: "productCount",
  rules: [{
	required: false,
	message: "请输入产品数量",
	trigger: "blur"
  }]
},

修改后

{
  label: "产品数量",
  prop: "productCount",
  rules: [{
	type: "number",
	required: false,
	message: "请输入产品数量",
	trigger: "blur"
  }]
},

标签:false,string,label,productCount,产品数量,message,prop,AVUE
来源: https://www.cnblogs.com/guxingy/p/13954720.html