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 {useAuthStore} from '@/stores/auth'
|
||||||
import Reactions from '@/components/input/Reactions.vue'
|
import Reactions from '@/components/input/Reactions.vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = withDefaults(defineProps<{
|
||||||
taskId: {
|
taskId: number,
|
||||||
type: Number,
|
canWrite?: boolean
|
||||||
required: true,
|
}>(), {
|
||||||
},
|
canWrite: true,
|
||||||
canWrite: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
const {t} = useI18n({useScope: 'global'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user