diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 40396c2..4cd8d99 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -15,6 +15,7 @@ - readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef readonly asyncComputed: UnwrapRef diff --git a/src/views/createVideo/index.vue b/src/views/createVideo/index.vue index 406b9d3..168c284 100644 --- a/src/views/createVideo/index.vue +++ b/src/views/createVideo/index.vue @@ -251,7 +251,6 @@ - @@ -301,10 +300,11 @@ :placeholder="$t('createVideo.select')" style="width: 100%" > + - {{ item.name }} + {{ + lanChange == "zh-cn" ? item.chineseName : item.name + }}

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

@@ -723,7 +725,7 @@ const overLoadUser = ref(false); //禁用个人相册加载更多 //系统相册触底加载更多 function loadMoreAiFaceSystem() { pageNumSystem.value += 1; - personPhotoList(pageNumSystem.value, 10, 1) + personPhotoList(pageNumSystem.value, 20, 1) .then((res) => { AiFaceList.value.push(...res.data.list); if (res.data.list.length == 0) { @@ -738,7 +740,7 @@ function loadMoreAiFaceSystem() { //个人相册触底加载更多 function loadMoreAiFaceUser() { pageNumUser.value += 1; - personPhotoUserListList(pageNumUser.value, 10, 3) + personPhotoUserListList(pageNumUser.value, 20, 3) .then((res) => { if (res.data.list.length == 0) { overLoadUser.value = true; @@ -927,19 +929,18 @@ const language = ref(""); //选择的语言 const sound = ref(""); // 选择的声音 const soundStyle = ref(""); //选择的风格 // 语言下拉框内容 -const languageOptions = ref([ - { - id: "0", - name: "中文", - }, - { - id: "1", - name: "English", - }, -]); +const languageOptions = ref([]); async function voiceTotal() { - const res = await voiceTotalApi(); - languageOptions.value = res.data; + try { + const res = await voiceTotalApi(); + languageOptions.value = res.data; + } catch (error) { + ElMessage.error( + lanChange.value == "zh-cn" + ? `获取语言列表失败,请稍后重试` + : `Failed to get the language list, please try again later` + ); + } } // 声音下拉框内容 const soundOptions = ref([]); @@ -1619,9 +1620,9 @@ const t = globalProperties.$t(string); //#region 页面初始化 onMounted(async () => { - getAiFaceList(1, 10, 1); + getAiFaceList(1, 20, 1); if (AccessToken) { - getAiFaceUserList(1, 10, 3); + getAiFaceUserList(1, 20, 3); await getmusicListPerson( musicListPageNumPerson.value, musicListPageSize.value diff --git a/src/views/myAccount/index.vue b/src/views/myAccount/index.vue index adb0e62..d2967d3 100644 --- a/src/views/myAccount/index.vue +++ b/src/views/myAccount/index.vue @@ -520,7 +520,7 @@ function routerTo(url) { &-two { position: relative; - height: 80px; + // height: 80px; text-align: center; overflow: hidden; @@ -536,12 +536,16 @@ function routerTo(url) { .getMore { position: absolute; - top: -1px; - right: -1px; + display: flex; + align-items: center; + justify-content: space-around; + top: 0px; + right: 0px; padding: 5px; width: 80px; - height: 80px; - line-height: 70px; + // height: 80px; + height: 100%; + // line-height: 70px; text-align: center; background-color: #000; color: #fff;