Merge branch 'main' of http://113.45.157.195:3003/insiinc/re-mooc
This commit is contained in:
commit
fc02fe47d5
|
@ -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}`,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue