mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 12:53:55 +08:00
feat: improve agent snapshot history
This commit is contained in:
@@ -17,6 +17,7 @@ defineOptions({
|
||||
})
|
||||
|
||||
const speedPitchStore = useSpeedPitch()
|
||||
const SPEED_PITCH_FIELDS = ['ttsVolume', 'ttsRate', 'ttsPitch'] as const
|
||||
|
||||
const localSettings = ref({
|
||||
ttsVolume: 0,
|
||||
@@ -25,7 +26,10 @@ const localSettings = ref({
|
||||
})
|
||||
|
||||
function handleConfirm() {
|
||||
speedPitchStore.updateSpeedPitch(localSettings.value)
|
||||
const changedFields = SPEED_PITCH_FIELDS.filter((field) => {
|
||||
return localSettings.value[field] !== speedPitchStore.speedPitch[field]
|
||||
})
|
||||
speedPitchStore.updateSpeedPitch(localSettings.value, { changedFields })
|
||||
goBack()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user