diff --git a/ui/src/views/template/component/ModelCard.vue b/ui/src/views/template/component/ModelCard.vue
index 0ed62b70e..07c5312ed 100644
--- a/ui/src/views/template/component/ModelCard.vue
+++ b/ui/src/views/template/component/ModelCard.vue
@@ -29,12 +29,18 @@
-
+
{{ percentage }}%
- 正在下载
+ 正在下载
@@ -144,10 +150,7 @@ const initInterval = () => {
downModel.value = ok.data
})
} else {
- if (downModel.value) {
- props.updateModelById(props.model.id, downModel.value)
- downModel.value = undefined
- }
+ downModel.value = undefined
}
}, 6000)
}
@@ -185,28 +188,27 @@ onBeforeUnmount(() => {
position: absolute;
top: 0;
left: 0;
- background-color: rgba(122, 122, 122, 0.8);
+ background-color: rgba(255, 255, 255, 0.9);
width: 100%;
height: 100%;
- z-index: 111;
+ z-index: 99;
text-align: center;
.percentage {
top: 50%;
- transform: translateY(-50%);
- margin-top: 5px;
+ transform: translateY(-65%);
}
.percentage-value {
display: block;
- margin-top: 10px;
- font-size: 28px;
- color: #ffffff;
+ font-size: 12px;
+ color: var(--el-color-primary);
}
.percentage-label {
display: block;
- margin-top: 10px;
+ margin-top: 45px;
+ margin-left: 10px;
font-size: 12px;
- color: #ffffff;
+ color: var(--el-color-primary);
}
}
}