修改部署端口
Change-Id: I9ae4984327894aa0c38ba6ea31e74927f571d518
diff --git a/Merge/back_wzy/routes/__pycache__/posts.cpython-310.pyc b/Merge/back_wzy/routes/__pycache__/posts.cpython-310.pyc
index 45d3343..a7623b2 100644
--- a/Merge/back_wzy/routes/__pycache__/posts.cpython-310.pyc
+++ b/Merge/back_wzy/routes/__pycache__/posts.cpython-310.pyc
Binary files differ
diff --git a/Merge/back_wzy/utils/Fpost.py b/Merge/back_wzy/utils/Fpost.py
index 894a831..2ffffbc 100644
--- a/Merge/back_wzy/utils/Fpost.py
+++ b/Merge/back_wzy/utils/Fpost.py
@@ -21,7 +21,7 @@
'/home/tianruiming/docker04/static'
]
# 默认访问节点(LVS负载均衡器)
- self.access_node = '192.168.5.231:8080'
+ self.access_node = '192.168.5.200:8080'
return
diff --git a/Merge/back_wzy/utils/__pycache__/Fpost.cpython-310.pyc b/Merge/back_wzy/utils/__pycache__/Fpost.cpython-310.pyc
index b261f17..dde50ba 100644
--- a/Merge/back_wzy/utils/__pycache__/Fpost.cpython-310.pyc
+++ b/Merge/back_wzy/utils/__pycache__/Fpost.cpython-310.pyc
Binary files differ
diff --git a/Merge/front/src/api/posts_wzy.js b/Merge/front/src/api/posts_wzy.js
index 4992f95..83e514f 100644
--- a/Merge/front/src/api/posts_wzy.js
+++ b/Merge/front/src/api/posts_wzy.js
@@ -1,5 +1,5 @@
// src/api/posts.js
-const BASE = 'http://10.126.59.25:5714' // 如果有代理可以留空,否则填完整域名,如 'http://localhost:3000'
+const BASE = 'http://192.168.5.235:5714' // 如果有代理可以留空,否则填完整域名,如 'http://localhost:3000'
/**
* 获取帖子列表
diff --git a/Merge/front/src/api/search_jwlll.js b/Merge/front/src/api/search_jwlll.js
index 5ab7eb1..7568f1d 100644
--- a/Merge/front/src/api/search_jwlll.js
+++ b/Merge/front/src/api/search_jwlll.js
@@ -1,7 +1,7 @@
// 搜索推荐算法相关的API接口
// 对应 JWLLL 后端服务
-const BASE_URL = 'http://127.0.0.1:5000'
+const BASE_URL = 'http://10.126.59.25:5717'
// 通用请求函数
const request = async (url, options = {}) => {
diff --git a/Merge/front/src/components/CreatePost.jsx b/Merge/front/src/components/CreatePost.jsx
index 2b365db..84f3fec 100644
--- a/Merge/front/src/components/CreatePost.jsx
+++ b/Merge/front/src/components/CreatePost.jsx
@@ -15,6 +15,7 @@
const isEdit = Boolean(postId)
// 步骤:新帖先上传,编辑则直接到 detail
const [step, setStep] = useState(isEdit ? 'detail' : 'upload')
+ const [files, setFiles] = useState([])
const [mediaUrls, setMediaUrls] = useState([])
// 表单字段