增加用户认证、等级、徽章与积分体系,并优化管理后台体验。
覆盖站长调账与积分解锁内容;后台按审核优先分组导航,仪表盘展示待办,用户管理改为成员目录式布局。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,7 @@ import type { LayoutCtx } from '../layouts/MainLayout';
|
||||
import { loginPath } from '../utils/authRedirect';
|
||||
import { useNoIndexSEO } from '../hooks/usePageSEO';
|
||||
import { parsePermalinkID, postPath } from '../utils/permalink';
|
||||
import { skipsModeration } from '../utils/userMeta';
|
||||
|
||||
interface ComposeBaseline {
|
||||
title: string;
|
||||
@@ -258,7 +259,7 @@ export default function ComposePage() {
|
||||
};
|
||||
if (isEdit) {
|
||||
await api.updatePost(editId!, payload);
|
||||
notify.success(user?.role === 'admin' ? '帖子已更新' : '已更新并重新提交审核');
|
||||
notify.success(skipsModeration(user) ? '帖子已更新' : '已更新并重新提交审核');
|
||||
markSaved();
|
||||
nav(postPath(editId!, limits));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user