Commit 97cc3d2a authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

Beta

See merge request !100
parents c368cff4 831bd744
...@@ -368,7 +368,8 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st ...@@ -368,7 +368,8 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
} }
ttsSocketCtl.onMessageError = () => { ttsSocketCtl.onMessageError = () => {
emit('updateSpecifyMessageItem', messageId, { isVoiceLoading: false }) emit('updateSpecifyMessageItem', messageId, { isVoiceLoading: false, voiceFragmentUrlList: [] })
emit('audioPause')
sentenceSpeechException.value = true sentenceSpeechException.value = true
messageAudioLoading.value = false messageAudioLoading.value = false
window.$message.error(t('common_module.unplayable_tip')) window.$message.error(t('common_module.unplayable_tip'))
......
...@@ -94,7 +94,7 @@ function handleRenderTimbreOption() { ...@@ -94,7 +94,7 @@ function handleRenderTimbreOption() {
return { return {
label: () => label: () =>
h('div', { class: 'flex items-baseline justify-between w-[180px]' }, [ h('div', { class: 'flex items-baseline justify-between w-[180px]' }, [
h('span', {}, { default: () => item.timbreName }), h('span', { class: 'max-w-[160px] line-clamp-1 whitespace-normal' }, { default: () => item.timbreName }),
h('i', { h('i', {
class: { class: {
......
...@@ -80,8 +80,7 @@ function handleClickChannelPublishTableAction(actionType: string) { ...@@ -80,8 +80,7 @@ function handleClickChannelPublishTableAction(actionType: string) {
} }
function handleAccessPage() { function handleAccessPage() {
const channelUrl = `${window.location.origin}/fe/share/web_source/${router.currentRoute.value.params.agentId}` router.push({ name: 'ShareWebApplication', params: { agentId: router.currentRoute.value.params.agentId } })
location.href = channelUrl
} }
function handleCopyShareLink() { function handleCopyShareLink() {
......
...@@ -347,7 +347,8 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st ...@@ -347,7 +347,8 @@ function ttsSocketSendText(text: string, audioUrlSerialNo: number, messageId: st
} }
ttsSocketCtl.onMessageError = () => { ttsSocketCtl.onMessageError = () => {
emit('updateSpecifyMessageItem', messageId, { isVoiceLoading: false }) emit('updateSpecifyMessageItem', messageId, { isVoiceLoading: false, voiceFragmentUrlList: [] })
emit('audioPause')
sentenceSpeechException.value = true sentenceSpeechException.value = true
messageAudioLoading.value = false messageAudioLoading.value = false
window.$message.error(t('common_module.unplayable_tip')) window.$message.error(t('common_module.unplayable_tip'))
......
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