From e6369c9b64a82eeada6b6f0658d2ae786787e101 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 12 三月 2026 10:23:32 +0800
Subject: [PATCH] #AI

---
 rsf-admin/src/layout/AppBarToolbar.jsx |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/rsf-admin/src/layout/AppBarToolbar.jsx b/rsf-admin/src/layout/AppBarToolbar.jsx
index 45cf9db..ff7cd2b 100644
--- a/rsf-admin/src/layout/AppBarToolbar.jsx
+++ b/rsf-admin/src/layout/AppBarToolbar.jsx
@@ -1,12 +1,28 @@
 import { LoadingIndicator, LocalesMenuButton } from 'react-admin';
 import { ThemeSwapper } from '../themes/ThemeSwapper';
 import { TenantTip } from './TenantTip';
+import { AiChatWidget } from '@/ai/AiChatWidget';
 
 export const AppBarToolbar = () => (
     <>
         <LocalesMenuButton />
         <ThemeSwapper />
         <LoadingIndicator />
+        <AiChatWidget
+            trigger="button"
+            buttonText="AI 瀵硅瘽"
+            buttonVariant="text"
+            buttonSx={{
+                minWidth: 'auto',
+                px: 1.25,
+                color: '#fff',
+                borderRadius: 2,
+                whiteSpace: 'nowrap',
+                '&:hover': {
+                    backgroundColor: 'rgba(255,255,255,0.12)'
+                }
+            }}
+        />
         <TenantTip />
     </>
 );

--
Gitblit v1.9.1