perf: 优化加载进度条体验

This commit is contained in:
奔跑的面条
2022-12-20 17:05:13 +08:00
parent 1fb57ad1ff
commit de9e304dd4
2 changed files with 7 additions and 1 deletions
+7
View File
@@ -26,6 +26,13 @@ const themeColor = computed(() => {
watch(
() => chartLayoutStore.getPercentage,
newValue => {
if (newValue === 0) {
setTimeout(() => {
percentage.value = newValue
showModal.value = false
}, 500);
return
}
percentage.value = newValue
showModal.value = newValue > 0
}