Skip to content

Commit d765913

Browse files
shaohuzhang1wangdan-fit2cloud
authored andcommitted
fix: Application history log interface loading status display error (#2151)
1 parent 7c3425d commit d765913

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ui/src/views/log/index.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
</LayoutContainer>
278278
</template>
279279
<script setup lang="ts">
280-
import { ref, onMounted, reactive, computed } from 'vue'
280+
import { ref, type Ref, onMounted, reactive, computed } from 'vue'
281281
import { useRoute } from 'vue-router'
282282
import { cloneDeep } from 'lodash'
283283
import ChatRecordDrawer from './component/ChatRecordDrawer.vue'
@@ -507,11 +507,13 @@ function getList() {
507507
})
508508
}
509509
510-
function getDetail() {
511-
application.asyncGetApplicationDetail(id as string, loading).then((res: any) => {
512-
detail.value = res.data
513-
days.value = res.data.clean_time
514-
})
510+
function getDetail(isLoading = false) {
511+
application
512+
.asyncGetApplicationDetail(id as string, isLoading ? loading : undefined)
513+
.then((res: any) => {
514+
detail.value = res.data
515+
days.value = res.data.clean_time
516+
})
515517
}
516518
517519
const exportLog = () => {
@@ -562,7 +564,7 @@ function saveCleanTime() {
562564
.then(() => {
563565
MsgSuccess(t('common.saveSuccess'))
564566
dialogVisible.value = false
565-
getDetail()
567+
getDetail(true)
566568
})
567569
.catch(() => {
568570
dialogVisible.value = false

0 commit comments

Comments
 (0)