|
|
@@ -825,6 +825,14 @@ export default {
|
|
|
|
|
|
// 处理配置变化,强制更新视图
|
|
|
handleConfigChange(v) {
|
|
|
+ if( !!v && v === "handleVoiceSource" ){
|
|
|
+ let voiceSource = this.selectedNode.nodeConfig.voiceSource;
|
|
|
+
|
|
|
+ this.easyCallVoiceCodeList = this.allEasyCallVoiceCodeList.filter(e => e.voiceSource == voiceSource);
|
|
|
+
|
|
|
+ this.selectedNode.nodeConfig.voiceCode = null;
|
|
|
+ this.selectedNode.nodeConfig.ttsModels = null;
|
|
|
+ }
|
|
|
if( !!v && v === "handleVoice" ){
|
|
|
let voice = this.easyCallVoiceCodeList.filter(e=>e.voiceCode == this.selectedNode.nodeConfig.voiceCode);
|
|
|
this.selectedNode.nodeConfig.voiceSource = voice[0].voiceSource;
|
|
|
@@ -909,6 +917,7 @@ export default {
|
|
|
this.easyCallLlmAccountList = res.data || []
|
|
|
})
|
|
|
getVoiceCodeList().then(res => {
|
|
|
+ this.allEasyCallVoiceCodeList = res.data || []
|
|
|
this.easyCallVoiceCodeList = res.data || []
|
|
|
})
|
|
|
getBusiGroupList().then(res => {
|