로그인 임시 처리(계정 하드코딩)

This commit is contained in:
Kang Jung Kyo 2024-09-11 16:08:30 +09:00
parent 58ca9945b0
commit 66671847b4

View File

@ -37,22 +37,41 @@ export default function Login(props) {
pwd: formData.get('password'),
}
await post({ url: '/api/login/v1.0/login', data: param }).then((res) => {
if (res) {
if (res.result.resultCode == 'S') {
// console.log('res.data', res.data)
//
// if (res.data.pwdInitYn != 'Y') {
// alert(' ')
// } else {
setSession(res.data)
redirect('/')
// }
} else {
alert(res.result.resultMsg)
}
}
// await post({ url: '/api/login/v1.0/login', data: param }).then((res) => {
// if (res) {
// if (res.result.resultCode == 'S') {
// // console.log('res.data', res.data)
// //
// // if (res.data.pwdInitYn != 'Y') {
// // alert(' ')
// // } else {
// setSession(res.data)
// redirect('/')
// // }
// } else {
// alert(res.result.resultMsg)
// }
// }
// })
//
setSession({
userId: 'NEW016610',
saleStoreId: null,
name: null,
mail: null,
tel: null,
storeId: 'TEMP02',
userNm: 'ㅇㅇ6610',
userNmKana: '신규사용자 16610',
category: '인상6610',
telNo: '336610',
fax: null,
email: 't10t@naver.com',
pwdInitYn: 'N',
})
redirect('/')
//
}
//