type check failed for prop “total“. Expected Number with value 0, got String with value ““

报错如下

原因:数字类型却给了一个'',total的初始值改为0即可

total:'', ==> total:0,

猜你喜欢

转载自blog.csdn.net/xingsfdz/article/details/115195630
今日推荐