mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix
This commit is contained in:
@@ -82,13 +82,14 @@ const updateSiteCookie = async () => {
|
|||||||
updateButtonText.value = "更新中 ...";
|
updateButtonText.value = "更新中 ...";
|
||||||
updateButtonDisable.value = true;
|
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/cookie/" + props.site?.id,
|
||||||
{
|
{
|
||||||
site_id: props.site?.id,
|
params: {
|
||||||
username: userPwForm.value.username,
|
username: userPwForm.value.username,
|
||||||
password: userPwForm.value.password,
|
password: userPwForm.value.password,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
$toast.success(`${props.site?.name} 更新Cookie & UA 成功!`);
|
$toast.success(`${props.site?.name} 更新Cookie & UA 成功!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user