Skip to content

Commit

Permalink
fix: improve ux
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Oct 7, 2024
1 parent 435bed0 commit 6cee4a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/AdminJoinView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default {
) {
this.access = true;
} else {
console.log("forbidden")
console.warn("Forbidden")
}
this.ready = true;
}
Expand Down
8 changes: 4 additions & 4 deletions src/views/AdminRoomView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ export default {
) {
this.access = true;
} else {
console.log("forbidden")
console.warn("Forbidden");
this.ready = true;
return;
}
try {
const xhr = await this.$axios.get('/admin-room');
this.url = xhr.data.url;
this.password = xhr.data.password;
} catch (error) {
if (!error?.response?.data?.code) {
this.status = '授權伺服器發生嚴重錯誤';
}
this.status = '授權伺服器發生嚴重錯誤';
console.error(error);
} finally {
this.ready = true;
}
Expand Down

0 comments on commit 6cee4a6

Please sign in to comment.