mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-07 04:20:47 +08:00
feat(frontend): allow admins to delete posts and comments
This commit is contained in:
@@ -140,7 +140,7 @@ export default {
|
||||
const isAuthor = computed(() => authState.username === author.value.username)
|
||||
const articleMenuItems = computed(() => {
|
||||
const items = []
|
||||
if (isAuthor.value) {
|
||||
if (isAuthor.value || isAdmin.value) {
|
||||
items.push({ text: '删除文章', color: 'red', onClick: () => deletePost() })
|
||||
}
|
||||
if (isAdmin.value && status.value === 'PENDING') {
|
||||
|
||||
Reference in New Issue
Block a user