This commit is contained in:
longdayi 2025-02-27 22:37:09 +08:00
parent 1dd03e5b99
commit a3284f4532
5 changed files with 19 additions and 19 deletions

View File

@ -14,7 +14,7 @@ export default function FilterSection() {
}); });
}; };
return ( return (
<div className=" flex z-0 p-6 flex-col rounded-lg mt-4 space-y-6 h-[820px] overscroll-contain overflow-x-hidden"> <div className=" flex z-0 p-6 flex-col mt-4 space-y-6 overscroll-contain overflow-x-hidden">
{showSearchMode && <SearchModeRadio></SearchModeRadio>} {showSearchMode && <SearchModeRadio></SearchModeRadio>}
{taxonomies?.map((tax, index) => { {taxonomies?.map((tax, index) => {
const items = Object.entries(selectedTerms).find( const items = Object.entries(selectedTerms).find(

View File

@ -11,14 +11,14 @@ export default function SearchModeRadio() {
return ( return (
<Space direction="vertical" align="start" className="mb-2"> <Space direction="vertical" align="start" className="mb-2">
<h3 className="text-lg font-medium mb-4"></h3> <h3 className="text-lg font-medium mb-4"></h3>
<Radio.Group <Radio.Group
value={searchMode} value={searchMode}
onChange={handleModeChange} onChange={handleModeChange}
buttonStyle="solid"> buttonStyle="solid">
<Radio.Button value={PostType.COURSE}></Radio.Button> <Radio.Button value={PostType.COURSE}></Radio.Button>
<Radio.Button value={PostType.PATH}></Radio.Button> <Radio.Button value={PostType.PATH}></Radio.Button>
<Radio.Button value="both"></Radio.Button> <Radio.Button value="both"></Radio.Button>
</Radio.Group> </Radio.Group>
</Space> </Space>
); );

View File

@ -86,7 +86,7 @@ export function MainHeader() {
window.location.href = "/path/editor"; window.location.href = "/path/editor";
}} }}
icon={<PlusOutlined></PlusOutlined>}> icon={<PlusOutlined></PlusOutlined>}>
</Button> </Button>
)} )}
{isAuthenticated ? ( {isAuthenticated ? (

View File

@ -11,8 +11,8 @@ export const NavigationMenu = () => {
const menuItems = useMemo(() => { const menuItems = useMemo(() => {
const baseItems = [ const baseItems = [
{ key: "home", path: "/", label: "首页" }, { key: "home", path: "/", label: "首页" },
{ key: "path", path: "/path", label: "学习路径" }, { key: "path", path: "/path", label: "思维导图" },
{ key: "courses", path: "/courses", label: "全部课程" }, { key: "courses", path: "/courses", label: "所有课程" },
]; ];
if (!isAuthenticated) { if (!isAuthenticated) {

View File

@ -107,7 +107,7 @@ export default function MindEditor({ id }: { id?: string }) {
nodeMenu: canEdit, // 禁用节点右键菜单 nodeMenu: canEdit, // 禁用节点右键菜单
keypress: canEdit, // 禁用键盘快捷键 keypress: canEdit, // 禁用键盘快捷键
}); });
mind.init(MindElixir.new("新学习路径")); mind.init(MindElixir.new("新思维导图"));
containerRef.current.hidden = true; containerRef.current.hidden = true;
setInstance(mind); setInstance(mind);
}, [canEdit]); }, [canEdit]);