show main page by default.
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
This commit is contained in:
@@ -52,6 +52,8 @@ export default class CalendarView {
|
||||
|
||||
async loadData() {
|
||||
if (!state.currentServer || !state.token) {
|
||||
// No server or token, just render calendar without loading
|
||||
this.renderCalendar();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -74,6 +76,8 @@ export default class CalendarView {
|
||||
return;
|
||||
}
|
||||
showToast(error.message || '加载失败', 'error');
|
||||
// Still render the calendar even if loading fails
|
||||
this.renderCalendar();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user