diff --git a/pages/dashboard/verify.vue b/pages/dashboard/verify.vue index e81bfeb..1874934 100644 --- a/pages/dashboard/verify.vue +++ b/pages/dashboard/verify.vue @@ -74,13 +74,11 @@
- + - {{ $t('verify.modal.applied') }} - + - {{ $t('verify.modal.deleted') }}
@@ -189,18 +187,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(() => {