Merge #74 into develop_web from feature/20251219_zy

fix(web): update parseSchema api param

* feature/20251219_zy: (3 commits)
  fix(web): time tool add time zone
  feat(web): neo4j type user memory detail
  fix(web): update parseSchema api param

Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>

CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/74
This commit is contained in:
赵莹
2025-12-26 19:17:39 +08:00
25 changed files with 526 additions and 291 deletions

View File

@@ -13,7 +13,7 @@ const { Content } = Layout;
// 认证布局组件使用useRouteGuard hook进行路由鉴权
const AuthLayout: FC = () => {
const { getUserInfo } = useUser();
const { getUserInfo, getStorageType } = useUser();
// 使用路由守卫hook处理认证和权限检查
useRouteGuard('manage');
// 自动更新面包屑导航
@@ -24,6 +24,7 @@ const AuthLayout: FC = () => {
window.location.href = `/#/login`;
} else {
getUserInfo()
getStorageType()
}
}, []);

View File

@@ -4,12 +4,13 @@ import { useUser } from '@/store/user';
// 基础布局组件,用于展示内容并保留用户信息获取功能
const BasicLayout: FC = () => {
const { getUserInfo } = useUser();
const { getUserInfo, getStorageType } = useUser();
// 获取用户信息
useEffect(() => {
getUserInfo();
}, [getUserInfo]);
getStorageType()
}, [getUserInfo, getStorageType]);
return (
<div className="rb:relative rb:h-full rb:w-full">