저장 시 toast 메시지 처리 적용
This commit is contained in:
parent
e078940a5b
commit
1a4145cb4a
@ -98,10 +98,11 @@ export default function FirstOption() {
|
||||
|
||||
// HTTP POST 요청 보내기
|
||||
await post({ url: `/api/canvas-management/canvas-settings`, data: patternData }).then((res) => {
|
||||
toastUp({ message: res.returnMessage, type: 'success' })
|
||||
//toastUp({ message: res.returnMessage, type: 'success' })
|
||||
toastUp({ message: getMessage(res.returnMessage), type: 'success' })
|
||||
})
|
||||
} catch (error) {
|
||||
toastUp({ message: res.returnMessage, type: 'error' })
|
||||
toastUp({ message: getMessage(res.returnMessage), type: 'error' })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -98,10 +98,10 @@ export default function SecondOption() {
|
||||
|
||||
// HTTP POST 요청 보내기
|
||||
await post({ url: `/api/canvas-management/canvas-settings`, data: patternData }).then((res) => {
|
||||
toastUp({ message: res.returnMessage, type: 'success' })
|
||||
toastUp({ message: getMessage(res.returnMessage), type: 'success' })
|
||||
})
|
||||
} catch (error) {
|
||||
toastUp({ message: res.returnMessage, type: 'error' })
|
||||
toastUp({ message: getMessage(res.returnMessage), type: 'error' })
|
||||
}
|
||||
}
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user