Skip to content

Commit

Permalink
fix: 创建证书账号/dns后刷新异步数据
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 25, 2024
1 parent ea96634 commit b0a4df7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/src/views/cert/CreateAccountModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const handleCreateAccount = async () => {
.finally(() => {
messageReactive?.destroy()
window.$bus.emit('cert:refresh-account')
window.$bus.emit('cert:refresh-async')
})
}
</script>
Expand Down
1 change: 1 addition & 0 deletions web/src/views/cert/CreateCertModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
</script>

Expand Down
1 change: 1 addition & 0 deletions web/src/views/cert/CreateDnsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
</script>

Expand Down
5 changes: 5 additions & 0 deletions web/src/views/cert/IndexView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ const getAsyncData = async () => {
onMounted(() => {
getAsyncData()
window.$bus.on('cert:refresh-async', getAsyncData)
})
onUnmounted(() => {
window.$bus.off('cert:refresh-async')
})
</script>

Expand Down
2 changes: 1 addition & 1 deletion web/src/views/file/ListTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ onMounted(() => {
})
onUnmounted(() => {
window.$bus.off('file:refresh', handleRefresh)
window.$bus.off('file:refresh')
})
</script>

Expand Down
2 changes: 1 addition & 1 deletion web/src/views/file/PathInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ onMounted(() => {
})
onUnmounted(() => {
window.$bus.off('push-history', handlePushHistory)
window.$bus.off('push-history')
})
</script>

Expand Down

0 comments on commit b0a4df7

Please sign in to comment.