fix(board): address review feedback on components
This commit is contained in:
parent
33d27c5d9e
commit
4d9eb3c198
3 changed files with 26 additions and 11 deletions
|
|
@ -97,6 +97,14 @@ const form = reactive({
|
|||
|
||||
const error = ref('')
|
||||
|
||||
watch(() => props.post, (p) => {
|
||||
form.title = p?.title || ''
|
||||
form.seeking = p?.seeking || ''
|
||||
form.offering = p?.offering || ''
|
||||
form.note = p?.note || ''
|
||||
form.tags = Array.isArray(p?.tags) ? [...p.tags] : []
|
||||
}, { immediate: false })
|
||||
|
||||
function toggleTag(slug) {
|
||||
const idx = form.tags.indexOf(slug)
|
||||
if (idx === -1) form.tags.push(slug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue