feat: update

This commit is contained in:
landaiqing
2024-07-22 09:04:46 +08:00
parent 3dacedf7fd
commit ac41e00105
26 changed files with 1424 additions and 965 deletions

View File

@@ -22,7 +22,11 @@ import TextArea from "antd/es/input/TextArea";
import { EyeOutlined, PlusOutlined, UnorderedListOutlined } from "@ant-design/icons";
import Meta from "antd/es/card/Meta";
import { addShareCircle, getShareCircleList } from "@/api/share";
const MainShare: FunctionComponent = () => {
import useStore from "@/utils/store/useStore.tsx";
import { observer } from "mobx-react";
const MainShare: FunctionComponent = observer(() => {
const store = useStore("user");
const userId: any = store.getUserId();
const navigate = useNavigate();
const [open, setOpen] = useState(false);
const [loading, setLoading] = useState(true);
@@ -184,8 +188,8 @@ const MainShare: FunctionComponent = () => {
layout="vertical"
form={form}
onFinish={(values: any) => {
const formData = {
userId: 17,
const formData: any = {
userId: userId,
...values,
};
addShareCircle(formData).then((res: any) => {
@@ -249,5 +253,5 @@ const MainShare: FunctionComponent = () => {
/>
</>
);
};
});
export default MainShare;