update: mobile 编辑源和语速音调页面样式调整

This commit is contained in:
zhuoqinglian
2026-03-11 17:10:18 +08:00
parent 6a14d694b0
commit 48087582c2
13 changed files with 487 additions and 819 deletions
@@ -0,0 +1,26 @@
import { defineStore } from 'pinia'
export const useSpeedPitch = defineStore('speedPitch', () => {
const speedPitch = ref({
ttsVolume: 0,
ttsRate: 0,
ttsPitch: 0,
})
const updateSpeedPitch = (val: typeof speedPitch.value) => {
speedPitch.value = val
}
return {
speedPitch,
updateSpeedPitch,
}
}, {
persist: {
key: 'speedPitch',
serializer: {
serialize: state => JSON.stringify(state.speedPitch),
deserialize: value => ({ speedPitch: JSON.parse(value) }),
},
},
})