Commit df226e30 authored by baesangjune's avatar baesangjune
Browse files

.

parent 7559f314
...@@ -24,7 +24,7 @@ function Admin() { ...@@ -24,7 +24,7 @@ function Admin() {
} }
function handleClickAddQuiz(){ function handleClickAddQuiz(){
QuizBtnCount.push( QuizBtn.push(
<button type='button' className='btn btn-outline-primary' id={QuizBtnCount} onClick={handleClickQuiz}>Quiz {QuizBtnCount}</button> <button type='button' className='btn btn-outline-primary' id={QuizBtnCount} onClick={handleClickQuiz}>Quiz {QuizBtnCount}</button>
) )
setQuizBtnCount(QuizBtnCount+1) setQuizBtnCount(QuizBtnCount+1)
......
...@@ -63,6 +63,7 @@ function AdminQuiz() { ...@@ -63,6 +63,7 @@ function AdminQuiz() {
else { else {
console.log(QnAadmin) console.log(QnAadmin)
QnAadmins.push(QnAadmin) QnAadmins.push(QnAadmin)
QnAadmin ={}
localStorage.setItem('QnA', JSON.stringify(QnAadmins)) localStorage.setItem('QnA', JSON.stringify(QnAadmins))
console.log(QnAadmins) console.log(QnAadmins)
alert('입력이 완료되었습니다.') alert('입력이 완료되었습니다.')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment