perf: 优化修改任务load

This commit is contained in:
kuaifan 2024-11-04 11:41:04 +08:00
parent c51135a4cc
commit ceb4fc8292
2 changed files with 6 additions and 1 deletions

View File

@ -91,6 +91,7 @@
completed-icon="ios-more"
size="medium"
:color-show="false"
:show-load="false"
@on-update="getLogLists"/>
</div>
</div>

View File

@ -1,6 +1,6 @@
<template>
<div class="task-menu-icon" @click="handleClick">
<div v-if="loadIng" class="loading"><Loading/></div>
<div v-if="loadIng && showLoad" class="loading"><Loading/></div>
<template v-else>
<Icon v-if="task.complete_at" class="completed" :type="completedIcon" />
<Icon v-else :type="icon" class="uncomplete"/>
@ -55,6 +55,10 @@ export default {
projectId:{
type: Number,
default: 0
},
showLoad: {
type: Boolean,
default: true
}
},
computed: {