Skip to content

Commit

Permalink
🐛 fix(verify): 아무 역할이 존재하지 않는 서버에서는 기능 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms authored Jan 8, 2024
1 parent 0254241 commit 1887868
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,22 @@ export default {
},
async saveSettings() {
try {
await this.$axios.$post(
'/dashboard/verify?id=' + this.$route.query.id,
{
status: this.switch_.confirm,
role: this.input.role,
},
{
headers: {
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
if (this.roleList.length > 0) {
await this.$axios.$post(
'/dashboard/verify?id=' + this.$route.query.id,
{
status: this.switch_.confirm,
role: this.input.role,
},
},
)
{
headers: {
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
},
},
)
} else {
this.switch_.confirm = false
}
this.$modal.show('success')
setTimeout(() => {
Expand Down

0 comments on commit 1887868

Please sign in to comment.