mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
Merge pull request #22 from thsrite/main
This commit is contained in:
@@ -228,6 +228,21 @@ async function updateSiteCookie() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 调用API删除站点信息
|
||||||
|
async function deleteSiteInfo() {
|
||||||
|
try {
|
||||||
|
const result: { [key: string]: any } = await api.delete(`site/${cardProps.site?.id}`)
|
||||||
|
if (result.success)
|
||||||
|
$toast.success(`${cardProps.site?.name} 删除成功!`)
|
||||||
|
else
|
||||||
|
$toast.error(`${cardProps.site?.name} 删除失败:${result.message}`)
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
$toast.error(`${cardProps.site?.name} 删除失败!`)
|
||||||
|
console.error(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 调用API更新站点信息
|
// 调用API更新站点信息
|
||||||
async function updateSiteInfo() {
|
async function updateSiteInfo() {
|
||||||
try {
|
try {
|
||||||
@@ -385,6 +400,12 @@ onMounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
浏览
|
浏览
|
||||||
</VBtn>
|
</VBtn>
|
||||||
|
<VBtn @click.stop="deleteSiteInfo">
|
||||||
|
<template #prepend>
|
||||||
|
<VIcon icon="mdi-trash-can-outline" />
|
||||||
|
</template>
|
||||||
|
删除
|
||||||
|
</VBtn>
|
||||||
</VCardActions>
|
</VCardActions>
|
||||||
</VCard>
|
</VCard>
|
||||||
<!-- 更新站点Cookie & UA弹窗 -->
|
<!-- 更新站点Cookie & UA弹窗 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user