Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
05fba584
Commit
05fba584
authored
Aug 10, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除部分没有使用的方法
parent
6f2f1890
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
22 deletions
+7
-22
src/hooks/useConfuse.ts
+0
-1
src/hooks/useScript.ts
+2
-3
src/pages/createLive/components/ChoseDigitalPerson.vue
+1
-1
src/pages/createLive/components/interact.vue
+1
-1
src/pages/createLive/index.vue
+3
-16
No files found.
src/hooks/useConfuse.ts
View file @
05fba584
import
{
show_message
}
from
'@/utils/tool'
;
import
{
liveContentRegenerate
,
liveContentRegenerateCallback
}
from
'@/utils/api/userApi'
;
import
{
onBeforeUnmount
,
ref
}
from
'vue'
;
...
...
src/hooks/useScript.ts
View file @
05fba584
...
...
@@ -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'
)
{
// 重新上传
...
...
src/pages/createLive/components/ChoseDigitalPerson.vue
View file @
05fba584
...
...
@@ -116,7 +116,7 @@ watch(
watch
(
()
=>
props
.
initNum
,
(
v
)
=>
{
()
=>
{
// init
currentCard
.
value
=
''
;
},
...
...
src/pages/createLive/components/interact.vue
View file @
05fba584
...
...
@@ -90,7 +90,7 @@ watch(
watch
(
()
=>
props
.
initNum
,
(
v
)
=>
{
()
=>
{
currentComment
.
value
=
''
;
interactiveLibrary
.
value
=
[];
},
...
...
src/pages/createLive/index.vue
View file @
05fba584
...
...
@@ -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
();
// 音频切割时长
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment