初始提交:姜十三论坛 Jiang13 Forum
轻量自用论坛,Go 单二进制 + React SPA 内嵌 + SQLite。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
8
frontend/src/lib/notify.ts
Normal file
8
frontend/src/lib/notify.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { toast } from 'sonner';
|
||||
|
||||
/** 统一 Toast 入口,替代 Arco Message */
|
||||
export const notify = {
|
||||
success: (message: string) => toast.success(message),
|
||||
error: (message: string) => toast.error(message),
|
||||
warning: (message: string) => toast.warning(message),
|
||||
};
|
||||
Reference in New Issue
Block a user