Skip to content

Commit

Permalink
Merge pull request #53 from HXTIA/dev
Browse files Browse the repository at this point in the history
fix: 更新发布作业接口参数
  • Loading branch information
HardenSG authored Jun 8, 2024
2 parents cccee14 + 12f119c commit 3cffd14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notifyBoard_C",
"version": "0.11.0",
"version": "0.14.3",
"private": true,
"description": "notifyBoard_C",
"templateInfo": {
Expand Down
21 changes: 9 additions & 12 deletions src/pages/main/Manage/components/work-manage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,17 @@ const Index = () => {
showToast('您还有未填写的内容')
return
}
const query = `?courseId=${course.id}&title=${title}&publishPlatform=WX&publisherId=${
getStorage('userInfo')?.nickname
}&description=${description}&deadline=${deadline}`
Post({
url: requestUrlCreator({ rootPath: 'WX_WORK', absolutePath: '/publishWork' + query }),
url: requestUrlCreator({ rootPath: 'WX_WORK', absolutePath: '/publishWork' }),
silent: true,
// data: {
// courseId: course.id,
// publishPlatform: 'WX',
// publisherId: getStorage('userInfo')?.nickname,
// description,
// deadline,
// title,
// },
data: {
courseId: course.id,
publishPlatform: 'WX',
publisherId: getStorage('userInfo')?.nickname,
description,
deadline,
title,
},
}).then(({ isSuccess, handleException }) => {
isSuccess ? showToast('发布成功!') : handleException()
})
Expand Down

0 comments on commit 3cffd14

Please sign in to comment.