mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-24 08:03:53 +08:00
feature:OTA能力完善
This commit is contained in:
@@ -9,8 +9,8 @@ export function checkUserLogin(fn) {
|
||||
let token = localStorage.getItem(Constant.STORAGE_KEY.TOKEN)
|
||||
let userType = localStorage.getItem(Constant.STORAGE_KEY.USER_TYPE)
|
||||
if (isNull(token) || isNull(userType)) {
|
||||
goToPage('console', true)
|
||||
return
|
||||
goToPage('/login', true)
|
||||
return false
|
||||
}
|
||||
if (fn) {
|
||||
fn()
|
||||
|
||||
Reference in New Issue
Block a user