use n magic key to next
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||
import { formatDate, formatDiffInMinutes } from '@/shared/format-date'
|
||||
import { toISODate } from '@/shared/types/date'
|
||||
import { useMagicKeys, whenever } from '@vueuse/core'
|
||||
import { computed } from 'vue'
|
||||
import { useTaskRecordStore } from '../stores/useTaskRecordStore'
|
||||
import StepRecord from './StepRecord.vue'
|
||||
@@ -69,6 +70,12 @@ const nextStep = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const { n } = useMagicKeys()
|
||||
|
||||
whenever(n, () => {
|
||||
nextStep()
|
||||
})
|
||||
|
||||
const duration = computed(() => {
|
||||
if (!record.value?.end) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user