🐛 修复安装时进度条 0%
This commit is contained in:
@@ -26,8 +26,13 @@ const DownloadCard: Component<{ download: DownloadTask }> = (props) => {
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<Progress value={props.download.progress} class="flex-1" />
|
||||
<span class="text-sm text-muted-foreground">{props.download.progress}%</span>
|
||||
<Progress
|
||||
value={['installing', 'installed'].includes(props.download.status) ? 100 : props.download.progress}
|
||||
class="flex-1"
|
||||
/>
|
||||
<span class="text-sm text-muted-foreground">
|
||||
{['installing', 'installed'].includes(props.download.status) ? 100 : props.download.progress}%
|
||||
</span>
|
||||
{(props.download.status === 'downloading' || props.download.status === 'queued') && (
|
||||
<Button
|
||||
size="icon"
|
||||
|
||||
Reference in New Issue
Block a user