|
|
|
@ -56,10 +56,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
type Comp = 'text' | 'md'
|
|
|
|
type Comp = 'text' | 'md'
|
|
|
|
|
|
|
|
|
|
|
|
const note = reactive<Note>({
|
|
|
|
const note = useNote()
|
|
|
|
title: '',
|
|
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const isLoading = ref<Boolean>(false)
|
|
|
|
const isLoading = ref<Boolean>(false)
|
|
|
|
@ -83,8 +80,8 @@
|
|
|
|
router.push('/notes')
|
|
|
|
router.push('/notes')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
note.title = response._data.note.title
|
|
|
|
note.value.title = response._data.note.title
|
|
|
|
note.description = response._data.note.description
|
|
|
|
note.value.description = response._data.note.description
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|