Commit 05fba584 by haojie

去除部分没有使用的方法

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