rht03022124
This commit is contained in:
parent
2c03a2eac0
commit
5c42a2608d
|
@ -39,7 +39,7 @@ const NodeMenu: React.FC<NodeMenuProps> = ({ mind }) => {
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
{
|
{
|
||||||
if (urlMode === "POSTURL")
|
if (urlMode === "POSTURL" && lecture?.courseId && lecture?.id)
|
||||||
setUrl(`/course/${lecture?.courseId}/detail/${lecture?.id}`);
|
setUrl(`/course/${lecture?.courseId}/detail/${lecture?.id}`);
|
||||||
mind.reshapeNode(mind.currentNode, {
|
mind.reshapeNode(mind.currentNode, {
|
||||||
hyperLink: `/course/${lecture?.courseId}/detail/${lecture?.id}`,
|
hyperLink: `/course/${lecture?.courseId}/detail/${lecture?.id}`,
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import { api } from "@nice/client";
|
import { api } from "@nice/client";
|
||||||
import { Select } from "antd";
|
import { Input, Select } from "antd";
|
||||||
import { Lecture, postDetailSelect, Prisma } from "@nice/common";
|
import { Lecture, postDetailSelect, Prisma } from "@nice/common";
|
||||||
import { useMemo, useState } from "react";
|
import { useMemo, useState } from "react";
|
||||||
import PostSelectOption from "./PostSelectOption";
|
import PostSelectOption from "./PostSelectOption";
|
||||||
import { DefaultArgs } from "@prisma/client/runtime/library";
|
import { DefaultArgs } from "@prisma/client/runtime/library";
|
||||||
import { safeOR } from "@nice/utils";
|
import { safeOR } from "@nice/utils";
|
||||||
|
import { LinkOutlined } from "@ant-design/icons";
|
||||||
|
|
||||||
export default function PostSelect({
|
export default function PostSelect({
|
||||||
value,
|
value,
|
||||||
|
@ -82,7 +83,7 @@ export default function PostSelect({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
width: 200,
|
width: "100%",
|
||||||
}}>
|
}}>
|
||||||
<Select
|
<Select
|
||||||
showSearch
|
showSearch
|
||||||
|
|
Loading…
Reference in New Issue