From ef207d5c72aa25edc10d11e0dccde17f37b41f48 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sat, 15 Jun 2024 22:52:35 +0800 Subject: [PATCH] fix: incorrect lang deps issue --- src/views/deps/components/form/InstallForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/deps/components/form/InstallForm.vue b/src/views/deps/components/form/InstallForm.vue index 96a857cf1487f..877c30530f0ec 100644 --- a/src/views/deps/components/form/InstallForm.vue +++ b/src/views/deps/components/form/InstallForm.vue @@ -117,8 +117,9 @@ export default defineComponent({ if (!props.visible) return; versionsLoading.value = true; try { - console.debug('getVersions', props.names[0]) - const res = await get(`${endpointL}/${props.lang}/${props.names[0]}/versions`) + const res = await get(`${endpointL}/${props.lang}/versions`, { + repo: props.names[0], + }) versions.value = res.data; if (versions.value.length > 0) { version.value = versions.value[0];