选择页面添加请求
This commit is contained in:
parent
d0631f2d20
commit
ce507ed2b7
@ -248,6 +248,7 @@ export default function ProjEditStep1(props: any) {
|
|||||||
// console.log(codeTypePageId);
|
// console.log(codeTypePageId);
|
||||||
|
|
||||||
setIsEditModalOpen(false);
|
setIsEditModalOpen(false);
|
||||||
|
|
||||||
put({
|
put({
|
||||||
messageApi,
|
messageApi,
|
||||||
url: `/api/proj/update/edit-step1/${pathParams.projId}`,
|
url: `/api/proj/update/edit-step1/${pathParams.projId}`,
|
||||||
@ -267,8 +268,20 @@ export default function ProjEditStep1(props: any) {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
content: '编辑成功'
|
content: '编辑成功'
|
||||||
})
|
})
|
||||||
|
put({
|
||||||
|
messageApi,
|
||||||
|
// url: `/api/proj/update/edit-step1/${props.projId}`,
|
||||||
|
url: `/api/proj/update-code-type-page-id/proj-id/${pathParams.projId}/code-page-type-id/${codeTypePageId}`,
|
||||||
|
|
||||||
|
|
||||||
|
onSuccess() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
props.closeModal()
|
props.closeModal()
|
||||||
|
|
||||||
// window.location.reload(); // 刷新页面
|
// window.location.reload(); // 刷新页面
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user