congzc 2 anos atrás
pai
commit
b22db5d4d7
2 arquivos alterados com 15 adições e 4 exclusões
  1. +1
    -0
      src/types/components.d.ts
  2. +14
    -4
      src/views/createVideo/index.vue

+ 1
- 0
src/types/components.d.ts Ver arquivo

@@ -26,6 +26,7 @@ declare module '@vue/runtime-core' {
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElUpload: typeof import('element-plus/es')['ElUpload']
GithubCorner: typeof import('./../components/GithubCorner/index.vue')['default']


+ 14
- 4
src/views/createVideo/index.vue Ver arquivo

@@ -450,7 +450,15 @@
</div>
</div>
<!-- 字幕 -->
<div v-if="tabItemActive == 4" class="tabContent"></div>
<div v-if="tabItemActive == 4" class="tabContent tab4">
<!-- <div v-if="imgUrl" class="SubtitlesSwitch">
<p>{{ $t("createVideo.subtitles") }}</p>
<el-switch
v-model="SubtitlesSwitch"
style="--el-switch-on-color: #000"
/>
</div> -->
</div>
</div>
<!-- 试听的mp3 -->
<div style="opacity: 0; width: 0">
@@ -1190,15 +1198,15 @@ async function createVideo() {
saveLoading.value = false;
return;
}
if (res4.data.data > 60) {
if (res4.data.data > 300) {
ElMessage.error(
lanChange.value == "zh-cn"
? `预计生成的视频时长约为${formatTime(
res4.data.data
)},免费用户生成视频时长为60秒,无法生成视频`
)},免费用户生成视频时长为300秒,无法生成视频`
: `The video generated is expected to be about ${formatTime(
res4.data.data
)} long, and the free user-generated video is 60 seconds long and cannot be generated`
)} long, and the free user-generated video is 300 seconds long and cannot be generated`
);
createLoading.value = false;
saveLoading.value = false;
@@ -1660,5 +1668,7 @@ onMounted(async () => {
}
}
}
.tab4 {
}
}
</style>

Carregando…
Cancelar
Salvar