修复查看帖子、评论、回复评论、点赞、收藏,添加用户等级
Change-Id: Ida9590d7ccee08dcd787a36c7e5cb39a3e26cd0d
diff --git a/src/pages/AuthPage/AuthPage.jsx b/src/pages/AuthPage/AuthPage.jsx
index bfc8e43..1aa7b24 100644
--- a/src/pages/AuthPage/AuthPage.jsx
+++ b/src/pages/AuthPage/AuthPage.jsx
@@ -25,7 +25,7 @@
import "./AuthPage.css";
import CryptoJS from "crypto-js";
-const API_BASE = process.env.REACT_APP_API_BASE;
+
function AuthPage() {
const [activeTab, setActiveTab] = useState("login");
@@ -78,7 +78,7 @@
const hashedPassword = hashPassword(loginData.password);
try {
- const response = await fetch(`${API_BASE}/echo/user/login`, {
+ const response = await fetch(`/echo/user/login`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -148,7 +148,7 @@
const hashedPassword = hashPassword(registerData.password);
try {
- const response = await fetch(`${API_BASE}/echo/user/register`, {
+ const response = await fetch(`/echo/user/register`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',