fix: 分类保存后关闭弹窗

This commit is contained in:
小龙 2026-04-06 18:36:14 +00:00
parent 0dccb698fe
commit bae8bd4a01
9 changed files with 84 additions and 2 deletions

File diff suppressed because one or more lines are too long

45
frontend/dist/assets/index-kg_FzRi-.js vendored Normal file

File diff suppressed because one or more lines are too long

10
frontend/dist/favicon.svg vendored Normal file
View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<defs>
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#8b5cf6"/>
<stop offset="100%" style="stop-color:#c4b5fd"/>
</linearGradient>
</defs>
<rect width="100" height="100" rx="20" fill="url(#grad)"/>
<path d="M30 25 L70 25 L70 45 L55 45 L55 75 L45 75 L45 45 L30 45 Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 432 B

1
frontend/dist/fonts/Inter-Bold.woff2 vendored Normal file
View File

@ -0,0 +1 @@
Couldn't find the requested file /fonts/Inter-Bold.woff2 in inter-font.

View File

@ -0,0 +1 @@
Couldn't find the requested file /fonts/Inter-Medium.woff2 in inter-font.

View File

@ -0,0 +1 @@
Couldn't find the requested file /fonts/Inter-Regular.woff2 in inter-font.

View File

@ -0,0 +1 @@
Couldn't find the requested file /fonts/Inter-SemiBold.woff2 in inter-font.

23
frontend/dist/index.html vendored Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>导航收藏夹</title>
<style>
/* 系统字体栈 */
@font-face {
font-family: 'System UI';
font-style: normal;
font-weight: 400;
src: local('SF Pro Text'), local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
}
</style>
<script type="module" crossorigin src="/assets/index-kg_FzRi-.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CoDTdT-2.css">
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@ -133,8 +133,7 @@ function App() {
const newCat = res.data const newCat = res.data
setCategories([...categories, newCat]) setCategories([...categories, newCat])
} }
setCategoryForm({ name: '', icon: 'folder', color: '#667eea', sort_order: 0 }) closeCategoryModal()
setEditingCategory(null)
} catch (e) { console.error(e) } finally { } catch (e) { console.error(e) } finally {
setSaving(false) setSaving(false)
} }