From 952e2d5086096dcafcdc245ecc6a8476ccd33ccc Mon Sep 17 00:00:00 2001 From: chutingting Date: Mon, 20 Nov 2023 20:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E4=BA=BA=E5=AE=9A=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/createVideo/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/createVideo/index.vue b/src/views/createVideo/index.vue index 892b359..b263f80 100644 --- a/src/views/createVideo/index.vue +++ b/src/views/createVideo/index.vue @@ -376,7 +376,7 @@
- {{ $t("createVideo.generateVideo") }}111 + {{ $t("createVideo.generateVideo") }}
@@ -490,6 +490,7 @@ {{ lanChange == "zh-cn" ? item.chineseName : item.name }} + (私人订制)

{{ $t("createVideo.voices") }}

@@ -517,7 +518,6 @@ `  (${item.sex == 1 ? 'male' : 'female'})`) + returnAge(item.ageType) }} - (私人订制)

{{ $t("createVideo.styles") }}

@@ -806,7 +806,7 @@ async function getModeList(sex, pageNum, pageSize, videoType) { const res = await modeListApi(sex, pageNum, pageSize, videoType); // 排序 定制分身在前 res.data.list.sort(function(a, b){ - return a.customized > b.customized ? 1 : -1 + return (b.customized) - (a.customized) }) modeList.value = res.data.list; overLoadModel.value = false; @@ -950,15 +950,15 @@ watch( const languageOptions = ref([]); async function voiceTotal() { const res = await voiceTotalApi(); + res.data.sort(function(a, b){ + return (b.customized) - (a.customized) + }) languageOptions.value = res.data; } // 声音下拉框内容 const soundOptions = ref([]); async function chooseType() { const res = await chooseTypeApi(language.value); - res.data.sort(function(a, b){ - return a.customized > b.customized ? 1 : -1 - }) soundOptions.value = res.data; sound.value = null; }