Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fix: navigate edit navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 6, 2023
1 parent ac5dc2c commit d157b38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/SingleNavigateEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import ImageHover from './ImageHover.vue'
import type { UseProducer } from '@/persis'
import { getTask, taskIndex } from '@/data/task'
import { navigate } from '@/data'
type T = string
Expand Down Expand Up @@ -45,7 +46,10 @@ const options = computed(() => {

<template>
<div class="flex gap-2">
<NButton>
<NButton
:disabled="!(value in taskIndex)"
@click="navigate(taskIndex[value])"
>
<template #icon>
<NIcon>
<MovingOutlined></MovingOutlined>
Expand Down

0 comments on commit d157b38

Please sign in to comment.