Commit 05fba584 by haojie

去除部分没有使用的方法

parent 6f2f1890
import { show_message } from '@/utils/tool';
import { liveContentRegenerate, liveContentRegenerateCallback } from '@/utils/api/userApi';
import { onBeforeUnmount, ref } from 'vue';
......
......@@ -50,7 +50,7 @@ export const processTextCallback = () => {
uuid: getTaskId(true),
};
// 生成音频
let res: any = await liveTts(params);
await liveTts(params);
}
console.log('等待音频生成完成');
// 开始轮询
......@@ -308,7 +308,6 @@ export const processTextCallback = () => {
let file = fileList[i];
let retryNum = 0;
while (true) {
let uploadStatus = null;
if (retryNum >= 5) {
console.log('音频块已经重试5次,跳过');
break;
......@@ -318,7 +317,7 @@ export const processTextCallback = () => {
}
try {
// 上传阿里云
uploadStatus = await alyOssUpload(config, file, uploadSuccess, () => false, getFileName(file));
await alyOssUpload(config, file, uploadSuccess, () => false, getFileName(file));
} catch (e) {
if (e && e.status == 'error') {
// 重新上传
......
......@@ -116,7 +116,7 @@ watch(
watch(
() => props.initNum,
(v) => {
() => {
// init
currentCard.value = '';
},
......
......@@ -90,7 +90,7 @@ watch(
watch(
() => props.initNum,
(v) => {
() => {
currentComment.value = '';
interactiveLibrary.value = [];
},
......
......@@ -76,7 +76,6 @@ import { computed, onBeforeMount, ref, onBeforeUnmount, onActivated } from 'vue'
import {
getElBounding,
show_message,
isDev,
DataType,
dimensionalConvert,
ecursionDeepCopy,
......@@ -93,21 +92,9 @@ import { useLiveInfoSubmit } from '@/hooks/useStoreCommit';
import { processTextCallback } from '@/hooks/useScript';
import CustomException from '@/utils/error';
import { v4 } from 'uuid';
import { splitAudio, audioMerge } from '@/utils/audio';
const {
loading,
initNum,
currentSetp,
live_task_id,
audioStart,
openInterval,
filterFiled,
backHome,
submitSuccessed,
submit,
initCreateStore,
uploadToAly,
} = processTextCallback();
import { splitAudio } from '@/utils/audio';
const { loading, initNum, currentSetp, live_task_id, openInterval, filterFiled, submitSuccessed, uploadToAly } =
processTextCallback();
const [commitInfo] = useLiveInfoSubmit();
// 音频切割时长
......
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