feat: 后端版本迁移修改
This commit is contained in:
@@ -36,7 +36,7 @@ Page({
|
||||
const { pageSize } = this.data;
|
||||
|
||||
try {
|
||||
const res = await request.post('/post/myPost', {
|
||||
const res = await request.post('/plant/post/myPost', {
|
||||
current,
|
||||
pageSize
|
||||
});
|
||||
@@ -107,7 +107,7 @@ Page({
|
||||
wx.showLoading({ title: '删除中...' });
|
||||
|
||||
// Use new API: POST /post/delete with ids array
|
||||
request.post('/post/delete', { ids: [postId] }).then(() => {
|
||||
request.post('/plant/post/delete', { ids: [postId] }).then(() => {
|
||||
wx.hideLoading();
|
||||
wx.showToast({ title: '已删除', icon: 'success' });
|
||||
// Remove from list locally
|
||||
|
||||
Reference in New Issue
Block a user