Skip to content

Commit

Permalink
label页直接录入跳转判断
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaTsuk1 committed Jun 8, 2024
1 parent 2454dc9 commit f889816
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/page/PageLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,17 @@ async function handleStart(label: Pick<SelectLabel, 'id' | 'planId'>) {
labelId: label.id,
planId: label.planId,
})
let needJump = true
try {
await noteCreate.open()
const form = await noteCreate.open()
if (form.direct)
needJump = false
}
catch (error) {
return
}
router.push('/record/timer')
if (needJump)
router.push('/record/timer')
}
async function handleGridChange(items: number[], list: GridList<SelectLabel>) {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useFormModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function useFormModal<

await modal.open()
await promise.open()
return model.value
}

const unwatchSource = watchDeep(() => source(model.value, modalValue.value), (v) => {
Expand Down

0 comments on commit f889816

Please sign in to comment.