fix bug ajax request is triggered more than one
This commit is contained in:
@@ -124,8 +124,6 @@ Inertia.on('finish', () => {
|
||||
nextTick(() => a.value = true)
|
||||
})
|
||||
|
||||
Inertia.on('finish', () => fetch())
|
||||
|
||||
onMounted(fetch)
|
||||
onMounted(() => window.addEventListener('keydown', esc))
|
||||
onUnmounted(() => window.removeEventListener('keydown', esc))
|
||||
|
||||
Reference in New Issue
Block a user