Commit 2408047a by haojie

编辑文本

parent e0d94a07
...@@ -50,7 +50,6 @@ import CardOne from '@/components/cardOne.vue'; ...@@ -50,7 +50,6 @@ import CardOne from '@/components/cardOne.vue';
import Button from '@/components/Button.vue'; import Button from '@/components/Button.vue';
import Dialog from '@/components/Dialog.vue'; import Dialog from '@/components/Dialog.vue';
import { ref, watch } from 'vue'; import { ref, watch } from 'vue';
import { jumpToCreateLivePage } from '@/router/jump';
import { constdigitalPeopleTypeList } from '@/service/Common'; import { constdigitalPeopleTypeList } from '@/service/Common';
const props = withDefaults( const props = withDefaults(
......
...@@ -209,7 +209,6 @@ ...@@ -209,7 +209,6 @@
import { computed, onMounted, reactive, ref, watch, toRaw } from 'vue'; import { computed, onMounted, reactive, ref, watch, toRaw } from 'vue';
import AudioSvg from '@/assets/svg/upload/audio.svg'; import AudioSvg from '@/assets/svg/upload/audio.svg';
import Button from '@/components/Button.vue'; import Button from '@/components/Button.vue';
import MultipleUpload from '@/components/MultipleUpload';
import CheckBox from '@/components/CheckBox.vue'; import CheckBox from '@/components/CheckBox.vue';
import ConfirmDialog from '@/components/ConfirmDialog.vue'; import ConfirmDialog from '@/components/ConfirmDialog.vue';
import TextScriptDialog from './TextScriptDialog.vue'; import TextScriptDialog from './TextScriptDialog.vue';
......
...@@ -437,21 +437,16 @@ const submitTaskAndConfuse = async (type: string) => { ...@@ -437,21 +437,16 @@ const submitTaskAndConfuse = async (type: string) => {
// 生成音频 // 生成音频
let res: any = await liveTts(params); let res: any = await liveTts(params);
if (res.code == 0) { if (res.code == 0) {
// 通过uuid找到对应的对象 // 是否使用测试id
let index = newList.findIndex((it: any) => it.uuid == params.uuid); let testUuid = getTestUuid();
if (index !== -1) { if (testUuid) {
let list = JSON.parse(JSON.stringify(newList)); row.task_id = 'ed71050141c74954ac779cfbb9dd9604';
// 是否使用测试id } else {
let testUuid = getTestUuid(); row.task_id = res.data.task_id;
if (testUuid) {
list[i].task_id = 'ed71050141c74954ac779cfbb9dd9604';
} else {
list[i].task_id = res.data.task_id;
}
commitInfo({
[createLiveKeys.textScriptList]: list,
});
} }
commitInfo({
[createLiveKeys.textScriptList]: newList,
});
} else { } else {
throw new CustomException('音频任务提交失败'); throw new CustomException('音频任务提交失败');
} }
......
...@@ -80,7 +80,7 @@ import routerConfig from '@/router/tool'; ...@@ -80,7 +80,7 @@ import routerConfig from '@/router/tool';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { getDigitalPeopleList } from '@/service/Common'; import { getDigitalPeopleList } from '@/service/Common';
import Button from '@/components/Button.vue'; import Button from '@/components/Button.vue';
import { callPyjsInWindow, injectWindow } from '@/utils/pyqt'; import { callPyjsInWindow } from '@/utils/pyqt';
import { jumpToCreateLivePage } from '@/router/jump'; import { jumpToCreateLivePage } from '@/router/jump';
import { useStore } from 'vuex'; import { useStore } from 'vuex';
......
import { import { isDev, show_message, dimensionalConvert, DataType, TableSortAsc } from '@/utils/tool';
mergedArray,
isDev,
show_message,
dimensionalConvert,
DataType,
TableSortAsc,
ecursionDeepCopy,
} from '@/utils/tool';
import { liveContentRegenerateCallback, liveTts, getLiveTtsCallback, liveTaskRegenerate } from '@/utils/api/userApi'; import { liveContentRegenerateCallback, liveTts, getLiveTtsCallback, liveTaskRegenerate } from '@/utils/api/userApi';
import { audioStart } from '@/service/Common'; import { audioStart } from '@/service/Common';
import store from '@/store'; import store from '@/store';
import { v4 } from 'uuid'; import { v4 } from 'uuid';
import { writeLog } from '@/utils/pyqt'; import { writeLog } from '@/utils/pyqt';
import { getDurationOfAudioFile } from '@/utils/audio'; import { getDurationOfAudioFile } from '@/utils/audio';
import { getTestUuid } from '@/constants/token';
/** /**
* 创建直播的版本 * 创建直播的版本
......
...@@ -4,7 +4,7 @@ import { writeLog } from '@/utils/pyqt'; ...@@ -4,7 +4,7 @@ import { writeLog } from '@/utils/pyqt';
const state = { const state = {
language: '', language: '',
}; };
type StateType = typeof state; // type StateType = typeof state;
const mutations = { const mutations = {
// setLang(state: StateType, info: string) { // setLang(state: StateType, info: string) {
......
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