This commit is contained in:
@@ -314,8 +314,6 @@ func (a *App) startLocalServer() {
|
||||
a.expectingLogin = false
|
||||
a.mu.Unlock()
|
||||
|
||||
blocker.Instance.Start()
|
||||
|
||||
// Kiểm tra điều kiện app được phép và giờ học trước khi tải giao diện
|
||||
go a.refreshStudentData()
|
||||
|
||||
@@ -413,7 +411,6 @@ func (a *App) loadSession() {
|
||||
if err := json.Unmarshal(data, &s); err == nil {
|
||||
a.student = &s
|
||||
log.Printf("[APP] Loaded local session: %s (%s)", s.FullName, s.StudentCode)
|
||||
blocker.Instance.Start()
|
||||
|
||||
go a.refreshStudentData()
|
||||
go a.fetchWifiPolicy()
|
||||
|
||||
@@ -10,7 +10,7 @@ export const ClassesTab: React.FC = () => {
|
||||
const [pageSize] = useState(15);
|
||||
const [search, setSearch] = useState('');
|
||||
const [systemFilter, setSystemFilter] = useState<number | undefined>(undefined);
|
||||
const [studyingOnly, setStudyingOnly] = useState(true);
|
||||
const [studyingOnly, setStudyingOnly] = useState(false);
|
||||
const [loading, setLoading] = useState(true);
|
||||
// Sync state
|
||||
const [syncStatus, setSyncStatus] = useState<SyncStatus | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user