Skip to content

Commit

Permalink
fix: Application history log interface loading status display error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Feb 7, 2025
1 parent a3d6083 commit 06feeec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ui/src/views/log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
</LayoutContainer>
</template>
<script setup lang="ts">
import { ref, onMounted, reactive, computed } from 'vue'
import { ref, type Ref, onMounted, reactive, computed } from 'vue'
import { useRoute } from 'vue-router'
import { cloneDeep } from 'lodash'
import ChatRecordDrawer from './component/ChatRecordDrawer.vue'
Expand Down Expand Up @@ -507,11 +507,13 @@ function getList() {
})
}
function getDetail() {
application.asyncGetApplicationDetail(id as string, loading).then((res: any) => {
detail.value = res.data
days.value = res.data.clean_time
})
function getDetail(isLoading = false) {
application
.asyncGetApplicationDetail(id as string, isLoading ? loading : undefined)
.then((res: any) => {
detail.value = res.data
days.value = res.data.clean_time
})
}
const exportLog = () => {
Expand Down Expand Up @@ -562,7 +564,7 @@ function saveCleanTime() {
.then(() => {
MsgSuccess(t('common.saveSuccess'))
dialogVisible.value = false
getDetail()
getDetail(true)
})
.catch(() => {
dialogVisible.value = false
Expand Down

0 comments on commit 06feeec

Please sign in to comment.