From beb39ed41c5aac15c052a2328fd0f89e1e4cfa27 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 31 May 2021 15:25:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=20l?= =?UTF-8?q?ast=5Fproject=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/common/js/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index f737b8133a..23e491459b 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -197,7 +197,8 @@ export function getCurrentUserId() { } export function getCurrentProjectID() { - return localStorage.getItem(PROJECT_ID); + let user = getCurrentUser(); + return user.lastProjectId; } export function enableModules(...modules) {