From 7372bbc17ec3ac9b43f2c31105801af558225559 Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Tue, 18 Mar 2025 17:11:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20NPS=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=8A=B6=E6=80=81=E5=85=B1=E4=BA=AB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 脱离 hooks,避免共享一个状态 --- src/views/Design/components/Questions/NPS.vue | 4 +++- src/views/Design/components/Questions/RateCharacter.vue | 2 +- .../views/Preview/components/questions/PreviewNPS.vue | 7 ++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/Design/components/Questions/NPS.vue b/src/views/Design/components/Questions/NPS.vue index 37fa60c..46d769e 100644 --- a/src/views/Design/components/Questions/NPS.vue +++ b/src/views/Design/components/Questions/NPS.vue @@ -32,8 +32,9 @@ + /> @@ -45,6 +46,7 @@ import { ref } from 'vue'; import RateCharacter from './RateCharacter.vue'; +const value = defineModel('value', { default: -1, type: Number }); const isPreview = defineModel('isPreview', { default: false, type: Boolean }); /* const props = */ defineProps({ index: { diff --git a/src/views/Design/components/Questions/RateCharacter.vue b/src/views/Design/components/Questions/RateCharacter.vue index 622518d..77b9676 100644 --- a/src/views/Design/components/Questions/RateCharacter.vue +++ b/src/views/Design/components/Questions/RateCharacter.vue @@ -16,8 +16,8 @@