From 15bd54ab5f6ce79cb67de543a971767a2e05f5bd Mon Sep 17 00:00:00 2001 From: upsiflu Date: Tue, 11 Feb 2025 20:40:30 +0100 Subject: [PATCH] =?UTF-8?q?fix(dx):=20[WIP]=20auto-generate=20correctly=20?= =?UTF-8?q?typed=20client=20for=20any=20API=20route=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/library/FileUpload.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/components/library/FileUpload.vue b/front/src/components/library/FileUpload.vue index 17794c8a8..f557f5ac7 100644 --- a/front/src/components/library/FileUpload.vue +++ b/front/src/components/library/FileUpload.vue @@ -82,6 +82,8 @@ const options = { const privacyLevel = defineModel({ required: true }) +const library = ref() + // New implementation with `useClient`: watch(privacyLevel, (newValue) => @@ -99,7 +101,6 @@ watch(privacyLevel, (newValue) => // Old implementation: /* -const library = ref() watch(privacyLevel, async(newValue) => { try { const response = await axios.get('libraries/', { params: {