commit | 57cc17be1f0f8516b9f201bc607f6e452210664e | [log] [tgz] |
---|---|---|
author | Krishya <2271857550@qq.com> | Mon May 26 16:43:34 2025 +0800 |
committer | Krishya <2271857550@qq.com> | Tue May 27 17:11:17 2025 +0800 |
tree | d08b045644ff6862e3d9279b8bf49a5e9223cc6b | |
parent | 1a0217f0415143bade2d93f0ca75808e8f828e87 [diff] [blame] |
修改论坛、促销、登录,增加测试 Change-Id: I71883fc1da46a94db47f90a4cd61474c274a5b2c
diff --git a/src/pages/Forum/posts-main/components/CreatePostButton.jsx b/src/pages/Forum/posts-main/components/CreatePostButton.jsx index 0390ee7..4f7d7b1 100644 --- a/src/pages/Forum/posts-main/components/CreatePostButton.jsx +++ b/src/pages/Forum/posts-main/components/CreatePostButton.jsx
@@ -4,7 +4,7 @@ import './CreatePostButton.css'; const API_BASE = process.env.REACT_APP_API_BASE; -const USER_ID = 456; +const user_id = 456; const CreatePostButton = () => { const [showModal, setShowModal] = useState(false); @@ -49,7 +49,7 @@ try { await axios.post( - `${API_BASE}/echo/forum/posts/${USER_ID}/createPost`, + `${API_BASE}/echo/forum/posts/${user_id}/createPost`, { title: title.trim(), post_content: content.trim(),