refactor(backend): 修改系统初始化和健康检查相关逻辑

- 更新 BackendInitDialog 组件中的提示信息,增加报错提示
- 在 config 路由中添加 sys_check 接口,用于系统检查
- 修改 useCheckBackend钩子,使用新的 sys_check接口进行系统检查
This commit is contained in:
JefferyHcool
2025-06-20 13:44:48 +08:00
parent f23ed6ec6c
commit 50bf467341
3 changed files with 6 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ interface Props {
</DialogTitle>
</DialogHeader>
<p className="text-muted-foreground mt-2"></p>
<p className="text-muted-foreground mt-2">,</p>
</DialogContent>
</Dialog>
)

View File

@@ -13,7 +13,7 @@ export const useCheckBackend = () => {
const check = async () => {
try {
await request.get('/sys_health')
await request.get('/sys_check')
setInitialized(true)
setLoading(false)
} catch {