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.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; }