fix: Application history log interface loading status display error (#2151)

This commit is contained in:
shaohuzhang1 2025-02-07 15:35:27 +08:00 committed by GitHub
parent a3d6083188
commit 06feeecedc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,7 +277,7 @@
</LayoutContainer> </LayoutContainer>
</template> </template>
<script setup lang="ts"> <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 { useRoute } from 'vue-router'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import ChatRecordDrawer from './component/ChatRecordDrawer.vue' import ChatRecordDrawer from './component/ChatRecordDrawer.vue'
@ -507,11 +507,13 @@ function getList() {
}) })
} }
function getDetail() { function getDetail(isLoading = false) {
application.asyncGetApplicationDetail(id as string, loading).then((res: any) => { application
detail.value = res.data .asyncGetApplicationDetail(id as string, isLoading ? loading : undefined)
days.value = res.data.clean_time .then((res: any) => {
}) detail.value = res.data
days.value = res.data.clean_time
})
} }
const exportLog = () => { const exportLog = () => {
@ -562,7 +564,7 @@ function saveCleanTime() {
.then(() => { .then(() => {
MsgSuccess(t('common.saveSuccess')) MsgSuccess(t('common.saveSuccess'))
dialogVisible.value = false dialogVisible.value = false
getDetail() getDetail(true)
}) })
.catch(() => { .catch(() => {
dialogVisible.value = false dialogVisible.value = false