refactor(front): update download and view options to use array syntax for translation labels

This commit is contained in:
keven1024
2026-02-27 16:53:00 +08:00
parent 4a8932f921
commit e14eed73c4
2 changed files with 10 additions and 10 deletions

View File

@@ -21,11 +21,11 @@ const props = defineProps<{
name="download_nums"
:label="t('page.shareOptions.file.downloadNums')"
:options="[
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 1), value: 1 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 2), value: 2 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 3), value: 3 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 5), value: 5 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', 10), value: 10 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [1]), value: 1 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [2]), value: 2 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [3]), value: 3 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [5]), value: 5 },
{ label: t('page.shareOptions.file.downloadOptions.xdownload', [10]), value: 10 },
]"
/>
{{ t('page.shareOptions.file.or') }}

View File

@@ -21,11 +21,11 @@ const props = defineProps<{
name="download_nums"
:label="t('page.shareOptions.text.viewNums')"
:options="[
{ label: t('page.shareOptions.text.viewOptions.xview', 1), value: 1 },
{ label: t('page.shareOptions.text.viewOptions.xview', 2), value: 2 },
{ label: t('page.shareOptions.text.viewOptions.xview', 3), value: 3 },
{ label: t('page.shareOptions.text.viewOptions.xview', 5), value: 5 },
{ label: t('page.shareOptions.text.viewOptions.xview', 10), value: 10 },
{ label: t('page.shareOptions.text.viewOptions.xview', [1]), value: 1 },
{ label: t('page.shareOptions.text.viewOptions.xview', [2]), value: 2 },
{ label: t('page.shareOptions.text.viewOptions.xview', [3]), value: 3 },
{ label: t('page.shareOptions.text.viewOptions.xview', [5]), value: 5 },
{ label: t('page.shareOptions.text.viewOptions.xview', [10]), value: 10 },
]"
/>
{{ t('page.shareOptions.text.or') }}