Skip to content

Commit

Permalink
Fixed the problem that scheduled task acquisition does not take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
FU-design committed Aug 5, 2024
1 parent 23bbc49 commit b57b3e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
17 changes: 5 additions & 12 deletions bigtop-manager-ui/src/components/job-info/job.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,10 @@
intervalId.value?.resume()
return
}
intervalId.value = useIntervalFn(
async () => {
await getJobsList()
},
MONITOR_SCHEDULE_INTERVAL,
{ immediate: false, immediateCallback: true }
)
intervalId.value = useIntervalFn(getJobsList, MONITOR_SCHEDULE_INTERVAL, {
immediate: true,
immediateCallback: true
})
}

const getJobsList = async () => {
Expand All @@ -164,11 +161,7 @@
sort: 'desc'
} as Pagination
const { content, total } = await getJobs(clusterId.value, params)
jobs.value = content.map((v) => {
return {
...v
}
})
jobs.value = content.map((v) => ({ ...v }))
paginationProps.value.total = total
loading.value = false
} catch (error) {
Expand Down
9 changes: 5 additions & 4 deletions bigtop-manager-ui/src/components/svg-icon/svg-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@
import { computed } from 'vue'

interface SvgIconProps {
prefix: string
prefix?: string
name: string
color: string
className: string
color?: string
className?: string
}

const props = withDefaults(defineProps<SvgIconProps>(), {
prefix: 'icon',
color: '#000'
color: '#000',
className: ''
})

const symbolId = computed(() => `#${props.prefix}-${props.name}`)
Expand Down

0 comments on commit b57b3e2

Please sign in to comment.