Skip to content

Commit 6cee4a6

Browse files
committed
fix: improve ux
1 parent 435bed0 commit 6cee4a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/views/AdminJoinView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default {
189189
) {
190190
this.access = true;
191191
} else {
192-
console.log("forbidden")
192+
console.warn("Forbidden")
193193
}
194194
this.ready = true;
195195
}

src/views/AdminRoomView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ export default {
7575
) {
7676
this.access = true;
7777
} else {
78-
console.log("forbidden")
78+
console.warn("Forbidden");
79+
this.ready = true;
7980
return;
8081
}
8182
try {
8283
const xhr = await this.$axios.get('/admin-room');
8384
this.url = xhr.data.url;
8485
this.password = xhr.data.password;
8586
} catch (error) {
86-
if (!error?.response?.data?.code) {
87-
this.status = '授權伺服器發生嚴重錯誤';
88-
}
87+
this.status = '授權伺服器發生嚴重錯誤';
88+
console.error(error);
8989
} finally {
9090
this.ready = true;
9191
}

0 commit comments

Comments
 (0)