비밀번호 POST

This commit is contained in:
kimdaae328 2025-02-10 15:03:16 +09:00
parent 9f106bd26a
commit cb38985b08

View File

@ -151,16 +151,33 @@ const togglePassword = (button) => {
}; };
// //
const handlePasswordSubmit = () => { const handlePasswordSubmit = async () => {
isPassword.value = false; isPassword.value = false;
lastClickedButton.value = null; lastClickedButton.value = null;
console.log('비밀번호:', password.value); console.log('비밀번호:', password.value);
console.log(props.boardId)
try {
const requestData = {
MEMBERSEQ: 1,
LOCCMTPWD: password.value
}
console.log(requestData)
const postResponse = await axios.post(`board/${props.boardId}/password`, requestData);
// router.push({ name: 'BoardEdit', params: { id: props.boardId } }); // console.log('post결과:', postResponse.data)
// if (response.data.code === 200 && response.data.data === true) {
// console.log(""); //
// } else {
// console.log(" .");
// }
} catch (error) {
console.error('비밀번호 확인 중 오류 발생:', error);
}
}; };
const deletePost = async () => { const deletePost = async () => {