Commit 2408047a by haojie

编辑文本

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