File tree Expand file tree Collapse file tree 2 files changed +29
-5
lines changed
Expand file tree Collapse file tree 2 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,11 @@ const dialogTab = ref(props.initialTab);
5555 <el-tab-pane
5656 :label =" t('DownloadDetails.downloadDockerContainers')"
5757 name =" docker" >
58- <DownloadDetailsDocker />
58+ <DownloadDetailsDocker :arch-code = " isaInfo.title " />
5959 </el-tab-pane >
60- <el-tab-pane :label =" t('DownloadDetails.downloadVmImages')" name =" vm" disabled />
60+ <el-tab-pane
61+ :label =" t('DownloadDetails.downloadVmImages')"
62+ name =" vm"
63+ disabled />
6164 </el-tabs >
6265</template >
Original file line number Diff line number Diff line change 1- <script setup>
1+ <script setup lang="ts" >
22const { t } = useI18n ();
3+
4+ type ArchCode =
5+ | ' amd64'
6+ | ' arm64'
7+ | ' loongarch64'
8+ | ' ppc64el'
9+ | ' riscv64'
10+ | ' loongson3' ;
11+ const { archCode } = defineProps <{ archCode: ArchCode }>();
12+
13+ const archMapDocker: Record <ArchCode , string > = {
14+ amd64: ' amd64' ,
15+ arm64: ' arm64' ,
16+ loongarch64: ' loong64' ,
17+ ppc64el: ' ppc64le' ,
18+ riscv64: ' riscv64' ,
19+ loongson3: ' mips64le/loongson3'
20+ };
321 </script >
422
523<template >
624 <div class =" flex flex-col gap-2" >
725 <p >
826 {{ t('DownloadDetailsDocker.text1') }}
9- <AppLink to =" https://hub.docker.com/r/aosc/aosc-os" target =" _blank" >Docker Hub</AppLink >
27+ <AppLink to =" https://hub.docker.com/r/aosc/aosc-os" target =" _blank" >
28+ Docker Hub
29+ </AppLink >
1030 {{ t('DownloadDetailsDocker.text2') }}
1131 </p >
1232
1333 <p >{{ t('DownloadDetailsDocker.text3') }}</p >
14- <CopyButton :content =" `docker pull aosc/aosc-os`" />
34+ <CopyButton
35+ :content =" `docker pull aosc/aosc-os --platform linux/${archMapDocker[archCode]}`" />
1536 </div >
1637</template >
1738
You can’t perform that action at this time.
0 commit comments