mirror of
https://github.com/acepanel/panel.git
synced 2026-02-08 11:59:48 +08:00
feat: 大部分视图支持消息总线
This commit is contained in:
@@ -67,6 +67,7 @@ const handleSubmit = async () => {
|
||||
.create(createModel.value)
|
||||
.then(() => {
|
||||
window.$message.success('创建成功')
|
||||
window.$bus.emit('task:refresh-cron')
|
||||
loading.value = false
|
||||
show.value = false
|
||||
})
|
||||
|
||||
@@ -232,6 +232,13 @@ const saveTaskEdit = async () => {
|
||||
|
||||
onMounted(() => {
|
||||
onPageChange(pagination.page)
|
||||
window.$bus.on('task:refresh-cron', () => {
|
||||
onPageChange(pagination.page)
|
||||
})
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
window.$bus.off('task:refresh-cron')
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user