diff --git a/web/src/views/cert/CreateAccountModal.vue b/web/src/views/cert/CreateAccountModal.vue index aae4e65d38..26c2ffd67b 100644 --- a/web/src/views/cert/CreateAccountModal.vue +++ b/web/src/views/cert/CreateAccountModal.vue @@ -42,6 +42,7 @@ const handleCreateAccount = async () => { .finally(() => { messageReactive?.destroy() window.$bus.emit('cert:refresh-account') + window.$bus.emit('cert:refresh-async') }) } diff --git a/web/src/views/cert/CreateCertModal.vue b/web/src/views/cert/CreateCertModal.vue index 00b4a46770..5c3ce4879a 100644 --- a/web/src/views/cert/CreateCertModal.vue +++ b/web/src/views/cert/CreateCertModal.vue @@ -33,6 +33,7 @@ const handleCreateCert = async () => { model.value.website_id = 0 model.value.auto_renew = true window.$bus.emit('cert:refresh-cert') + window.$bus.emit('cert:refresh-async') } diff --git a/web/src/views/cert/CreateDnsModal.vue b/web/src/views/cert/CreateDnsModal.vue index 4fe36ea2f1..f6649a7c6b 100644 --- a/web/src/views/cert/CreateDnsModal.vue +++ b/web/src/views/cert/CreateDnsModal.vue @@ -28,6 +28,7 @@ const handleCreateDNS = async () => { model.value.data.sk = '' model.value.name = '' window.$bus.emit('cert:refresh-dns') + window.$bus.emit('cert:refresh-async') } diff --git a/web/src/views/cert/IndexView.vue b/web/src/views/cert/IndexView.vue index 558e17f21e..12382764f8 100644 --- a/web/src/views/cert/IndexView.vue +++ b/web/src/views/cert/IndexView.vue @@ -80,6 +80,11 @@ const getAsyncData = async () => { onMounted(() => { getAsyncData() + window.$bus.on('cert:refresh-async', getAsyncData) +}) + +onUnmounted(() => { + window.$bus.off('cert:refresh-async') }) diff --git a/web/src/views/file/ListTable.vue b/web/src/views/file/ListTable.vue index 9200354879..ef8602e40c 100644 --- a/web/src/views/file/ListTable.vue +++ b/web/src/views/file/ListTable.vue @@ -524,7 +524,7 @@ onMounted(() => { }) onUnmounted(() => { - window.$bus.off('file:refresh', handleRefresh) + window.$bus.off('file:refresh') }) diff --git a/web/src/views/file/PathInput.vue b/web/src/views/file/PathInput.vue index 69afe19893..a072e87cba 100644 --- a/web/src/views/file/PathInput.vue +++ b/web/src/views/file/PathInput.vue @@ -106,7 +106,7 @@ onMounted(() => { }) onUnmounted(() => { - window.$bus.off('push-history', handlePushHistory) + window.$bus.off('push-history') })