fix : load Gitea URL on modal open instead of onMounted
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -326,8 +326,8 @@ watch(() => props.task, (task) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(async () => {
|
watch(() => props.modelValue, async (open) => {
|
||||||
if (props.task?.project?.giteaOwner && props.task?.project?.giteaRepo) {
|
if (open && props.task?.project?.giteaOwner && props.task?.project?.giteaRepo && !giteaUrl.value) {
|
||||||
try {
|
try {
|
||||||
const settings = await getGiteaSettings()
|
const settings = await getGiteaSettings()
|
||||||
giteaUrl.value = settings.url ?? ''
|
giteaUrl.value = settings.url ?? ''
|
||||||
|
|||||||
Reference in New Issue
Block a user