mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 12:38:07 +01:00
🎨
This commit is contained in:
parent
455d5c3908
commit
cd8b537465
6 changed files with 9 additions and 10 deletions
|
|
@ -89,7 +89,7 @@ class App {
|
|||
initMessage();
|
||||
initAssets();
|
||||
fetchPost("/api/setting/getCloudUser", {}, userResponse => {
|
||||
window.siyuan.user = userResponse.data || {};
|
||||
window.siyuan.user = userResponse.data;
|
||||
fetchPost("/api/system/getEmojiConf", {}, emojiResponse => {
|
||||
window.siyuan.emojis = emojiResponse.data as IEmoji[];
|
||||
setNoteBook(() => {
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export const showAccountInfo = () => {
|
|||
fetchPost("/api/setting/getCloudUser", {
|
||||
token: window.siyuan.user.userToken,
|
||||
}, response => {
|
||||
window.siyuan.user = response.data || {};
|
||||
window.siyuan.user = response.data;
|
||||
showMessage(window.siyuan.languages.refreshUser, 3000);
|
||||
showAccountInfo();
|
||||
const menuAccountElement = document.getElementById("menuAccount");
|
||||
|
|
@ -169,7 +169,7 @@ const afterLogin = (response: IWebSocketData, deactive = false) => {
|
|||
fetchPost("/api/setting/getCloudUser", {
|
||||
token: response.data.token,
|
||||
}, response => {
|
||||
window.siyuan.user = response.data || {};
|
||||
window.siyuan.user = response.data;
|
||||
closePanel();
|
||||
document.getElementById("menuAccount").innerHTML = `<img class="b3-menu__icon" src="${window.siyuan.user.userAvatarURL}"/>
|
||||
<span class="b3-menu__label">${window.siyuan.user.userName}</span>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue