diff --git a/src/components/GuipRadio.vue b/src/components/GuipRadio.vue index 5249497..e937587 100644 --- a/src/components/GuipRadio.vue +++ b/src/components/GuipRadio.vue @@ -149,7 +149,11 @@ export default { return option.key; } - return option[this.valueKey] || option; + // 明确检查 valueKey 是否存在 + if (typeof option === 'object' && this.valueKey in option) { + return option[this.valueKey]; + } + return option; }, // 判断选项是否禁用 isDisabled(key) {