Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Console 배포 (2024-01-08) (2) #8

Merged
merged 4 commits into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@
<!-- 성공적으로 저장했습니다! -->
</h2>
<div class="flex flex-col text-gray-400 pt-3 gap-2">
<span v-if="switch_.confirm">
<span v-if="switch_.confirm" v-html="$t('verify.modal.applied')">
<!-- 새로운 유저가 <code>/verify</code> 명령어로 인증할 수 있습니다. -->
{{ $t('verify.modal.applied') }}
</span>
<span v-else>
<span v-else v-html="$t('verify.modal.deleted')">
<!-- 새로운 유저는 더 이상 <code>/verify</code> 명령어로 인증할 수 없습니다. -->
{{ $t('verify.modal.deleted') }}
</span>

<br />
Expand Down Expand Up @@ -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(() => {
Expand Down
Loading