Skip to content

Commit

Permalink
🐛 fix: axios header fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms committed Jan 3, 2024
1 parent 7dd2e38 commit 12fd5bf
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default {
this.server = (
await this.$axios.$get('/dashboard/servers?id=' + this.$route.query.id, {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down
6 changes: 3 additions & 3 deletions pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ export default {
socket.emit('push:load', {
guild: this.$route.query.id,
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
})
this.alerts.interval = setInterval(() => {
socket.emit('push:check', {
guild: this.$route.query.id,
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
already: this.alerts.contents.map(alert => alert.id),
})
}, 5000)
Expand All @@ -495,7 +495,7 @@ export default {
this.summary = (
await this.$axios.$get('/dashboard/summary?id=' + this.$route.query.id, {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/invite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export default {
const settings = (
await this.$axios.$get('/dashboard/invite?id=' + this.$route.query.id, {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down Expand Up @@ -439,7 +439,7 @@ export default {
},
{
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
},
)
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default {
const memberList = (
await this.$axios.$get('/dashboard/members?id=' + this.$route.query.id, {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down Expand Up @@ -238,7 +238,7 @@ export default {
},
{
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
},
)
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default {
const settings = (
await this.$axios.$get('/dashboard/verify?id=' + this.$route.query.id, {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down Expand Up @@ -192,7 +192,7 @@ export default {
},
{
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
},
)
Expand Down
2 changes: 1 addition & 1 deletion pages/servers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
const serverList = (
await this.$axios.$get('/dashboard/servers', {
headers: {
access_token: localStorage.getItem('access_token'),
Authorization: "Bearer " + localStorage.getItem('access_token'),
},
})
).data
Expand Down

0 comments on commit 12fd5bf

Please sign in to comment.