fix(mcp): improve error handling and notification visibility
- Increase notification z-index to z-[80] to prevent overlay issues - Make MCP save operation async with proper error propagation - Display specific backend error messages in form validation - Ensure errors are visible in both form and panel layers
This commit is contained in:
@@ -333,7 +333,7 @@ function App() {
|
||||
{/* 通知组件 - 相对于视窗定位 */}
|
||||
{notification && (
|
||||
<div
|
||||
className={`fixed top-20 left-1/2 transform -translate-x-1/2 z-50 px-4 py-3 rounded-lg shadow-lg transition-all duration-300 ${
|
||||
className={`fixed top-20 left-1/2 transform -translate-x-1/2 z-[80] px-4 py-3 rounded-lg shadow-lg transition-all duration-300 ${
|
||||
notification.type === "error"
|
||||
? "bg-red-500 text-white"
|
||||
: "bg-green-500 text-white"
|
||||
|
||||
Reference in New Issue
Block a user