场景:Props 向组件中传值的时候出现了这个报错

解决方案:使用箭头函数

props: {
	rlist: {
		type:Array,
		default: () => []
	}
}
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐