标签: typescript
出现此错误,
Property 'value' does not exist on type 'string | { value: string; label: string; }'.
当我们有这个 OR 运算符时,它应该可以取任何值,对吗?所以如果值是字符串,那么应该没问题,不是吗?