Skip to content

Commit

Permalink
变量命名修正
Browse files Browse the repository at this point in the history
  • Loading branch information
FU-design committed Jul 25, 2024
1 parent 35848b6 commit f625743
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bigtop-manager-ui/src/components/job-info/job.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
showLogAwaitMsg.value = status
}

const onLogCompalete = (status: boolean) => {
const onLogComplete = (status: boolean) => {
isComplete.value = status
}

Expand Down Expand Up @@ -292,7 +292,7 @@
ref="logRef"
@vue:before-unmount="setShowLogAwaitMsg"
@on-log-receive="setShowLogAwaitMsg"
@on-log-compalete="onLogCompalete"
@on-log-complete="onLogComplete"
/>
</template>
</a-modal>
Expand Down
6 changes: 3 additions & 3 deletions bigtop-manager-ui/src/components/job-info/task-log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
const logMeta = ref<string>('')
const canceler = ref<Canceler>()

const emit = defineEmits(['onLogReceive', 'onLogCompalete'])
const emit = defineEmits(['onLogReceive', 'onLogComplete'])

watch(logMeta, (val) => {
logText.value = val
Expand All @@ -61,7 +61,7 @@

const onLogComplete = (res: string | undefined) => {
cancelSseConnect()
emit('onLogCompalete', res != undefined)
emit('onLogComplete', res != undefined)
}

const cancelSseConnect = () => {
Expand All @@ -88,7 +88,7 @@
onBeforeUnmount(() => {
cancelSseConnect()
emit('onLogReceive', false)
emit('onLogCompalete', false)
emit('onLogComplete', false)
})

defineExpose({
Expand Down

0 comments on commit f625743

Please sign in to comment.