应用市场如果应用已存在显示为已安装

This commit is contained in:
jingrow 2025-11-03 03:04:24 +08:00
parent c0b4367054
commit d348a656c0
2 changed files with 3 additions and 3 deletions

View File

@ -19,10 +19,10 @@
> >
<template #icon> <template #icon>
<n-icon> <n-icon>
<Icon :icon="isCurrentAppInstalled ? 'tabler:refresh' : 'tabler:download'" /> <Icon :icon="isCurrentAppInstalled ? 'tabler:check' : 'tabler:download'" />
</n-icon> </n-icon>
</template> </template>
{{ isCurrentAppInstalled ? t('Update') : t('Install') }} {{ isCurrentAppInstalled ? t('Installed') : t('Install') }}
</n-button> </n-button>
</div> </div>
</div> </div>

View File

@ -99,7 +99,7 @@
type="warning" type="warning"
@click="installApp(app)" @click="installApp(app)"
> >
{{ t('Update') }} {{ t('Installed') }}
</n-button> </n-button>
<n-button <n-button
v-else v-else