From 6bc59e61693f385abf29b40a1ed8873bf0467e6c Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Mon, 11 Aug 2025 14:11:47 +0800 Subject: [PATCH] =?UTF-8?q?radio-value=E5=80=BC=E8=8E=B7=E5=8F=96=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GuipRadio.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {