From 20129ad2f94b2cea7f005e454ee8a90e936c84f8 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 6 Jul 2023 23:27:10 +0800 Subject: [PATCH] fix --- src/components/cards/SiteCard.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/cards/SiteCard.vue b/src/components/cards/SiteCard.vue index c4a17921..a88940ca 100644 --- a/src/components/cards/SiteCard.vue +++ b/src/components/cards/SiteCard.vue @@ -82,12 +82,13 @@ const updateSiteCookie = async () => { updateButtonText.value = "更新中 ..."; updateButtonDisable.value = true; - const result: { [key: string]: any } = await api.put( + const result: { [key: string]: any } = await api.get( "site/cookie/" + props.site?.id, { - site_id: props.site?.id, - username: userPwForm.value.username, - password: userPwForm.value.password, + params: { + username: userPwForm.value.username, + password: userPwForm.value.password, + } } ); if (result.success) {