这是组件内报错,将Type类型改为[Number, String]即可
props: { count: { type: Number, default: 0 }, }
改为
props: { count: { type: [Number, String], default: 0 }, }
原文地址:https://www.cnblogs.com/wanggang2016/p/12388382.html
时间: 2024-10-10 12:52:22
这是组件内报错,将Type类型改为[Number, String]即可
props: { count: { type: Number, default: 0 }, }
改为
props: { count: { type: [Number, String], default: 0 }, }
原文地址:https://www.cnblogs.com/wanggang2016/p/12388382.html