diff --git a/bigtop-manager-ui/src/components/job-info/job.vue b/bigtop-manager-ui/src/components/job-info/job.vue index 41a6eb62..e645c60a 100644 --- a/bigtop-manager-ui/src/components/job-info/job.vue +++ b/bigtop-manager-ui/src/components/job-info/job.vue @@ -210,7 +210,7 @@ showLogAwaitMsg.value = status } - const onLogCompalete = (status: boolean) => { + const onLogComplete = (status: boolean) => { isComplete.value = status } @@ -292,7 +292,7 @@ ref="logRef" @vue:before-unmount="setShowLogAwaitMsg" @on-log-receive="setShowLogAwaitMsg" - @on-log-compalete="onLogCompalete" + @on-log-complete="onLogComplete" /> diff --git a/bigtop-manager-ui/src/components/job-info/task-log.vue b/bigtop-manager-ui/src/components/job-info/task-log.vue index 89a0b68e..36f1bfd9 100644 --- a/bigtop-manager-ui/src/components/job-info/task-log.vue +++ b/bigtop-manager-ui/src/components/job-info/task-log.vue @@ -36,7 +36,7 @@ const logMeta = ref('') const canceler = ref() - const emit = defineEmits(['onLogReceive', 'onLogCompalete']) + const emit = defineEmits(['onLogReceive', 'onLogComplete']) watch(logMeta, (val) => { logText.value = val @@ -61,7 +61,7 @@ const onLogComplete = (res: string | undefined) => { cancelSseConnect() - emit('onLogCompalete', res != undefined) + emit('onLogComplete', res != undefined) } const cancelSseConnect = () => { @@ -88,7 +88,7 @@ onBeforeUnmount(() => { cancelSseConnect() emit('onLogReceive', false) - emit('onLogCompalete', false) + emit('onLogComplete', false) }) defineExpose({