修改广场动态编辑按钮

This commit is contained in:
al 2025-02-07 19:01:17 +08:00
parent 905f7b10cb
commit f9db9cc613
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
import React, { useState, useEffect } from "react";
import { List, InfiniteScroll, Toast } from "antd-mobile";
import { useRouter } from "next/navigation";
import { useRouter, useParams } from "next/navigation";
import requireAPI from "@/utils/requireAPI";
import Empty from "@/components/Empty";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@ -10,7 +10,8 @@ import { faAngleLeft } from "@fortawesome/free-solid-svg-icons";
import PostItem from "@/components/PostItem";
import { get } from "@/utils/storeInfo";
export default function StreamerPosts({ id }) {
export default function StreamerPosts() {
const { id } = useParams();
//
const [currentTime, setCurrentTime] = useState();
const [account, setAccount] = useState(null);
@ -33,7 +34,7 @@ export default function StreamerPosts({ id }) {
// if (!more) return;
try {
const body = {
mid: id,
mid: parseInt(id),
ct_upper_bound: currentTime,
offset: offset,
limit: 4,

View File

@ -132,7 +132,7 @@ export default function EditPost() {
//Toast
Toast.show({
icon: "success",
content: "更新成功",
content: "提交成功,等待审核!",
position: "top",
});
router.back();