fix: 卸载时终止历史报告状态提交
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</template>
|
||||
|
||||
<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 SearchTable from '@/components/search-table/index.vue'
|
||||
import type { FormItem } from '@/components/search-form/types'
|
||||
@@ -154,6 +154,10 @@ const downloadingId = ref<number | null>(null)
|
||||
const tableData = ref<ReportRecord[]>([])
|
||||
let latestRequestId = 0
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
latestRequestId += 1
|
||||
})
|
||||
|
||||
const pagination = reactive({
|
||||
current: 1,
|
||||
pageSize: 20,
|
||||
|
||||
Reference in New Issue
Block a user