From efabb958aa4766dab58fefeacd9c5a7669b46f3c Mon Sep 17 00:00:00 2001 From: alwayrun Date: Tue, 4 Jun 2024 15:36:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=89=A9=E6=96=99?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E7=BB=84=E4=BB=B6=20BaseRate=20=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=A7=A6=E5=8F=91=20change=20=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/materials/questions/widgets/BaseRate/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/materials/questions/widgets/BaseRate/index.jsx b/web/src/materials/questions/widgets/BaseRate/index.jsx index 3d6f9a9a..4acebf6b 100644 --- a/web/src/materials/questions/widgets/BaseRate/index.jsx +++ b/web/src/materials/questions/widgets/BaseRate/index.jsx @@ -52,7 +52,10 @@ export default defineComponent({ }) const handleClick = (num) => { if (props.readonly) return - rating.value = num + + if (rating.value !== num) { + rating.value = num + } } return { rating,