fix: 卸载时终止历史报告状态提交

This commit is contained in:
zxr
2026-08-03 22:14:19 +08:00
parent 3abdc187fb
commit 913e9e63ad

View File

@@ -62,7 +62,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed, reactive, ref } from 'vue' import { computed, onBeforeUnmount, reactive, ref } from 'vue'
import { Message } from '@arco-design/web-vue' import { Message } from '@arco-design/web-vue'
import SearchTable from '@/components/search-table/index.vue' import SearchTable from '@/components/search-table/index.vue'
import type { FormItem } from '@/components/search-form/types' import type { FormItem } from '@/components/search-form/types'
@@ -154,6 +154,10 @@ const downloadingId = ref<number | null>(null)
const tableData = ref<ReportRecord[]>([]) const tableData = ref<ReportRecord[]>([])
let latestRequestId = 0 let latestRequestId = 0
onBeforeUnmount(() => {
latestRequestId += 1
})
const pagination = reactive({ const pagination = reactive({
current: 1, current: 1,
pageSize: 20, pageSize: 20,