This commit is contained in:
ditiqi 2025-03-02 21:25:29 +08:00
commit fc02fe47d5
2 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@ const NodeMenu: React.FC<NodeMenuProps> = ({ mind }) => {
);
useEffect(() => {
{
if (urlMode === "POSTURL")
if (urlMode === "POSTURL" && lecture?.courseId && lecture?.id)
setUrl(`/course/${lecture?.courseId}/detail/${lecture?.id}`);
mind.reshapeNode(mind.currentNode, {
hyperLink: `/course/${lecture?.courseId}/detail/${lecture?.id}`,

View File

@ -1,10 +1,11 @@
import { api } from "@nice/client";
import { Select } from "antd";
import { Input, Select } from "antd";
import { Lecture, postDetailSelect, Prisma } from "@nice/common";
import { useMemo, useState } from "react";
import PostSelectOption from "./PostSelectOption";
import { DefaultArgs } from "@prisma/client/runtime/library";
import { safeOR } from "@nice/utils";
import { LinkOutlined } from "@ant-design/icons";
export default function PostSelect({
value,
@ -82,7 +83,7 @@ export default function PostSelect({
return (
<div
style={{
width: 200,
width: "100%",
}}>
<Select
showSearch