mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-27 16:14:25 +00:00
fix: 默认不推荐
This commit is contained in:
@@ -67,7 +67,6 @@ public class Post {
|
|||||||
@Column
|
@Column
|
||||||
private LocalDateTime pinnedAt;
|
private LocalDateTime pinnedAt;
|
||||||
|
|
||||||
@Column(nullable = false)
|
@Column(nullable = true)
|
||||||
private boolean rssExcluded = false;
|
private boolean rssExcluded = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -358,9 +358,9 @@ const articleMenuItems = computed(() => {
|
|||||||
items.push({ text: '置顶', onClick: () => pinPost() })
|
items.push({ text: '置顶', onClick: () => pinPost() })
|
||||||
}
|
}
|
||||||
if (rssExcluded.value) {
|
if (rssExcluded.value) {
|
||||||
items.push({ text: '取消rss不推荐', onClick: () => includeRss() })
|
items.push({ text: 'rss推荐', onClick: () => includeRss() })
|
||||||
} else {
|
} else {
|
||||||
items.push({ text: 'rss不推荐', onClick: () => excludeRss() })
|
items.push({ text: '取消rss推荐', onClick: () => excludeRss() })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isAdmin.value && status.value === 'PENDING') {
|
if (isAdmin.value && status.value === 'PENDING') {
|
||||||
@@ -676,7 +676,7 @@ const includeRss = async () => {
|
|||||||
})
|
})
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
rssExcluded.value = false
|
rssExcluded.value = false
|
||||||
toast.success('已取消rss不推荐')
|
toast.success('已标记为rss推荐')
|
||||||
} else {
|
} else {
|
||||||
toast.error('操作失败')
|
toast.error('操作失败')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user