Commit 621e5936 authored by nick zheng's avatar nick zheng

fix: 数字人对话角色配置关闭按钮无效

parent aa7165c3
......@@ -34,9 +34,9 @@ watch(
(newValue) => {
isUnSavedDigitalHumanDialogueConfig.value = true
saveDialoguePayload.value = JSON.parse(JSON.stringify(newValue))
saveDialoguePayload.value.systemInfo.chitchatStatus = newValue?.systemInfo.chitchat ? 'Y' : 'N'
saveDialoguePayload.value.systemInfo.perambleStatus = newValue?.systemInfo.preamble ? 'Y' : 'N'
saveDialoguePayload.value.systemInfo.refuseAnswerStatus = newValue?.systemInfo.refuseAnswer ? 'Y' : 'N'
!newValue?.systemInfo.chitchat && (saveDialoguePayload.value.systemInfo.chitchatStatus = 'N')
!newValue?.systemInfo.preamble && (saveDialoguePayload.value.systemInfo.perambleStatus = 'N')
!newValue?.systemInfo.refuseAnswer && (saveDialoguePayload.value.systemInfo.refuseAnswerStatus = 'N')
},
{ deep: true },
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment