feat: use withDefaults for Comments
This commit is contained in:
parent
f2fdbad7d4
commit
f19f19bb75
@ -200,15 +200,11 @@ import {useConfigStore} from '@/stores/config'
|
||||
import {useAuthStore} from '@/stores/auth'
|
||||
import Reactions from '@/components/input/Reactions.vue'
|
||||
|
||||
const props = defineProps({
|
||||
taskId: {
|
||||
type: Number,
|
||||
required: true,
|
||||
},
|
||||
canWrite: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
const props = withDefaults(defineProps<{
|
||||
taskId: number,
|
||||
canWrite?: boolean
|
||||
}>(), {
|
||||
canWrite: true,
|
||||
})
|
||||
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user