fix: 修复查询 last_project_id

This commit is contained in:
Captain.B 2021-05-31 15:25:00 +08:00 committed by 刘瑞斌
parent 6349a31e1b
commit 10afad1d19
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ export function getCurrentUserId() {
} }
export function getCurrentProjectID() { export function getCurrentProjectID() {
return localStorage.getItem(PROJECT_ID); let user = getCurrentUser();
return user.lastProjectId;
} }
export function enableModules(...modules) { export function enableModules(...modules) {