Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #17 from paywteam/develop-env
Browse files Browse the repository at this point in the history
Develop env
  • Loading branch information
hchangjae authored Nov 28, 2019
2 parents c6cd368 + 3953e53 commit a9bfab5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"dev": "cross-env HOST=0.0.0.0 PORT=3000 nuxt",
"dev-hcj": "cross-env HOST=0.0.0.0 PORT=3010 nuxt",
"dev-wsj": "cross-env HOST=0.0.0.0 PORT=3020 nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
Expand All @@ -24,7 +25,10 @@
"restart-dev": "npm run stop-dev && npm run start-dev",
"start-dev-hcj": "pm2 start npm --name 'web-dev-hcj' -- run dev-hcj",
"stop-dev-hcj": "pm2 delete web-dev-hcj",
"restart-dev-hcj": "npm run stop-dev-hcj && npm run start-dev-hcj"
"restart-dev-hcj": "npm run stop-dev-hcj && npm run start-dev-hcj",
"start-dev-wsj": "pm2 start npm --name 'web-dev-wsj' -- run dev-wsj",
"stop-dev-wsj": "pm2 delete web-dev-wsj",
"restart-dev-wsj": "npm run stop-dev-wsj && npm run start-dev-wsj"
},
"dependencies": {
"axios": "^0.19.0",
Expand Down
16 changes: 11 additions & 5 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="top">
<!-- <div class="qt-index">#1</div> -->
<div class="qt-title"> {{ quiz.title }} </div>
<div class="qt-money">{{ quiz.money }}</div>
<div class="qt-money">{{ quiz.money }} &#8361;</div>
</div>
<div class="middle">
<div class="qm-content-wrapper" >
Expand Down Expand Up @@ -159,7 +159,6 @@ export default {
await axios.post(url, body)
},
async moreComments(){
console.log('more')
this.busy = true
const url = `${this.baseURL['db']}/comment/more`
const body = {
Expand All @@ -171,9 +170,16 @@ export default {
this.loading = true
const result = await axios.get(url, body)
this.loading = false
this.comments = this.comments.concat(result.data)
this.numOfComments += 20
this.busy = false
if(result.data.length != 0){
this.comments = this.comments.concat(result.data)
this.numOfComments += 20
this.busy = false
}
else{
setTimeout(()=>{
this.busy = false
},10000)
}
},
async postAnswer(){
const url = `${this.baseURL['db']}/quiz/${this.quiz.quizID}/${this.answerTextarea}`
Expand Down

0 comments on commit a9bfab5

Please sign in to comment.