mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-10 14:54:18 +00:00
Fix linting
This commit is contained in:
parent
a461ccebe3
commit
acd3fd9fa0
@ -90,7 +90,7 @@ const initAuthState = (): { isAuthenticated: boolean; isGuestMode: boolean; core
|
|||||||
const token = localStorage.getItem('LIGHTRAG-API-TOKEN');
|
const token = localStorage.getItem('LIGHTRAG-API-TOKEN');
|
||||||
const coreVersion = localStorage.getItem('LIGHTRAG-CORE-VERSION');
|
const coreVersion = localStorage.getItem('LIGHTRAG-CORE-VERSION');
|
||||||
const apiVersion = localStorage.getItem('LIGHTRAG-API-VERSION');
|
const apiVersion = localStorage.getItem('LIGHTRAG-API-VERSION');
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
return {
|
return {
|
||||||
isAuthenticated: false,
|
isAuthenticated: false,
|
||||||
@ -138,7 +138,7 @@ export const useAuthStore = create<AuthState>(set => {
|
|||||||
|
|
||||||
logout: () => {
|
logout: () => {
|
||||||
localStorage.removeItem('LIGHTRAG-API-TOKEN');
|
localStorage.removeItem('LIGHTRAG-API-TOKEN');
|
||||||
|
|
||||||
const coreVersion = localStorage.getItem('LIGHTRAG-CORE-VERSION');
|
const coreVersion = localStorage.getItem('LIGHTRAG-CORE-VERSION');
|
||||||
const apiVersion = localStorage.getItem('LIGHTRAG-API-VERSION');
|
const apiVersion = localStorage.getItem('LIGHTRAG-API-VERSION');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user