diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue
index 039ec071..c9d00d0e 100644
--- a/src/components/cards/MediaCard.vue
+++ b/src/components/cards/MediaCard.vue
@@ -93,6 +93,7 @@ async function handleAddSubscribe() {
}
else {
// 弹出季选择列表,支持多选
+ seasonsSelected.value = []
subscribeSeasonDialog.value = true
}
}
@@ -169,9 +170,9 @@ function showSubscribeAddToast(result: boolean,
if (best_version > 0)
subname = '洗版订阅'
- if (result)
+ if (result && seasonsSelected.value.length > 1)
$toast.success(`${title} 添加${subname}成功!`)
- else
+ else if (!result)
$toast.error(`${title} 添加${subname}失败:${message}!`)
}
diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue
index d3b9c394..ad9c0de9 100644
--- a/src/components/cards/PluginCard.vue
+++ b/src/components/cards/PluginCard.vue
@@ -255,7 +255,10 @@ const dropdownItems = ref([
查看详情
-
+
保存
@@ -279,11 +282,16 @@ const dropdownItems = ref([
/>
-
+
配置
-
+
关闭
diff --git a/src/components/cards/SiteCard.vue b/src/components/cards/SiteCard.vue
index 4b9781e5..e5bf72f6 100644
--- a/src/components/cards/SiteCard.vue
+++ b/src/components/cards/SiteCard.vue
@@ -278,10 +278,14 @@ onMounted(() => {
-
+
{{ cardProps.site?.name }}
- {{ cardProps.site?.url }}
+
+ {{ cardProps.site?.url }}
+
@@ -550,7 +554,10 @@ onMounted(() => {
删除
-
+
确定
diff --git a/src/components/cards/TorrentCard.vue b/src/components/cards/TorrentCard.vue
index b7e97fbd..64b2b13c 100644
--- a/src/components/cards/TorrentCard.vue
+++ b/src/components/cards/TorrentCard.vue
@@ -64,6 +64,9 @@ async function handleAddDownload(_site: any = undefined,
dialogProps: {
maxWidth: '50rem',
},
+ confirmationButtonProps: {
+ variant: 'tonal',
+ },
})
if (!isConfirmed)
diff --git a/src/components/cards/TorrentItem.vue b/src/components/cards/TorrentItem.vue
index 95b7f1b3..fbcd3e60 100644
--- a/src/components/cards/TorrentItem.vue
+++ b/src/components/cards/TorrentItem.vue
@@ -61,6 +61,9 @@ async function handleAddDownload(_site: any = undefined,
dialogProps: {
maxWidth: '50rem',
},
+ confirmationButtonProps: {
+ variant: 'tonal',
+ },
})
if (!isConfirmed)
diff --git a/src/components/filebrowser/List.vue b/src/components/filebrowser/List.vue
index bf2206c5..dfdbdcb3 100644
--- a/src/components/filebrowser/List.vue
+++ b/src/components/filebrowser/List.vue
@@ -158,6 +158,9 @@ async function deleteItem(item: FileItem) {
dialogProps: {
maxWidth: '50rem',
},
+ confirmationButtonProps: {
+ variant: 'tonal',
+ },
})
if (confirmed) {
@@ -596,13 +599,14 @@ onMounted(() => {
-
取消
+
重命名
@@ -738,6 +742,7 @@ onMounted(() => {
开始整理
diff --git a/src/components/form/SubscribeEditForm.vue b/src/components/form/SubscribeEditForm.vue
index 2b70f03e..f81829f0 100644
--- a/src/components/form/SubscribeEditForm.vue
+++ b/src/components/form/SubscribeEditForm.vue
@@ -19,7 +19,7 @@ const siteList = ref([])
const selectSitesOptions = ref<{ [key: number]: string }[]>([])
// 订阅编辑表单
-let subscribeForm = reactive({
+const subscribeForm = ref({
id: props.subid ?? 0,
keyword: '',
quality: '',
@@ -47,15 +47,15 @@ const $toast = useToast()
// 调用API修改订阅
async function updateSubscribeInfo() {
try {
- subscribeForm.best_version = subscribeForm.best_version ? 1 : 0
- const result: { [key: string]: any } = await api.put('subscribe/', subscribeForm)
+ subscribeForm.value.best_version = subscribeForm.value.best_version ? 1 : 0
+ const result: { [key: string]: any } = await api.put('subscribe/', subscribeForm.value)
// 提示
if (result.success) {
- $toast.success(`${subscribeForm.name} 更新成功!`)
+ $toast.success(`${subscribeForm.value.name} 更新成功!`)
// 通知父组件刷新
emit('save')
}
- else { $toast.error(`${subscribeForm.name} 更新失败:${result.message}!`) }
+ else { $toast.error(`${subscribeForm.value.name} 更新失败:${result.message}!`) }
}
catch (e) {
console.log(e)
@@ -97,8 +97,8 @@ async function getSubscribeInfo() {
const result: Subscribe = await api.get(
`subscribe/${props.subid}`,
)
- subscribeForm = result
- subscribeForm.best_version = subscribeForm.best_version === 1
+ subscribeForm.value = result
+ subscribeForm.value.best_version = subscribeForm.value.best_version === 1
}
catch (e) {
console.log(e)
@@ -122,6 +122,11 @@ async function removeSubscribe() {
}
}
+watchEffect(() => {
+ if (props.subid)
+ getSubscribeInfo()
+})
+
// 质量选择框数据
const qualityOptions = ref([
{
@@ -210,8 +215,6 @@ const effectOptions = ref([
onMounted(async () => {
// 加载订阅站点列表
getSiteList()
- // 加载订阅信息
- getSubscribeInfo()
})
@@ -221,7 +224,7 @@ onMounted(async () => {
scrollable
>
@@ -230,7 +233,7 @@ onMounted(async () => {
{
/>
{
/>
{
{
-
-
-
+
{
- 删除
+ 取消订阅
-
+
保存
diff --git a/src/layouts/components/SearchBar.vue b/src/layouts/components/SearchBar.vue
index b1f85c59..180c5d4c 100644
--- a/src/layouts/components/SearchBar.vue
+++ b/src/layouts/components/SearchBar.vue
@@ -63,6 +63,7 @@ function openSearchDialog() {
搜索
diff --git a/src/layouts/components/UserProfile.vue b/src/layouts/components/UserProfile.vue
index 49ec6734..c7a9474a 100644
--- a/src/layouts/components/UserProfile.vue
+++ b/src/layouts/components/UserProfile.vue
@@ -38,6 +38,9 @@ async function restart() {
dialogProps: {
maxWidth: '30rem',
},
+ cancellationButtonProps: {
+ variant: 'tonal',
+ },
})
if (confirmed) {
diff --git a/src/views/discover/MediaDetailView.vue b/src/views/discover/MediaDetailView.vue
index 530aa1f9..4606f544 100644
--- a/src/views/discover/MediaDetailView.vue
+++ b/src/views/discover/MediaDetailView.vue
@@ -244,9 +244,7 @@ function showSubscribeAddToast(result: boolean,
if (best_version > 0)
subname = '洗版订阅'
- if (result)
- $toast.success(`${title} 添加${subname}成功!`)
- else
+ if (!result)
$toast.error(`${title} 添加${subname}失败:${message}!`)
}
diff --git a/src/views/reorganize/TransferHistoryView.vue b/src/views/reorganize/TransferHistoryView.vue
index 3bd117cf..77856df2 100644
--- a/src/views/reorganize/TransferHistoryView.vue
+++ b/src/views/reorganize/TransferHistoryView.vue
@@ -476,6 +476,7 @@ const dropdownItems = ref([