mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-24 16:34:20 +08:00
add chat plugin and split query to parse and execute (#25)
* [feature](webapp) add drill down dimensions and metric period compare and modify layout * [feature](webapp) add drill down dimensions and metric period compare and modify layout * [feature](webapp) gitignore add supersonic-webapp * [feature](webapp) gitignore add supersonic-webapp * [feature](webapp) add chat plugin and split query to parse and execute * [feature](webapp) add chat plugin and split query to parse and execute * [feature](webapp) add chat plugin and split query to parse and execute --------- Co-authored-by: williamhliu <williamhliu@tencent.com>
This commit is contained in:
@@ -88,7 +88,10 @@ export async function getInitialState(): Promise<{
|
||||
await getToken();
|
||||
}
|
||||
|
||||
const currentUser = await fetchUserInfo();
|
||||
let currentUser: any;
|
||||
if (!window.location.pathname.includes('login')) {
|
||||
currentUser = await fetchUserInfo();
|
||||
}
|
||||
|
||||
if (currentUser) {
|
||||
localStorage.setItem('user', currentUser.staffName);
|
||||
|
||||
Reference in New Issue
Block a user