|
|
|
@ -27,10 +27,12 @@ export class TopPanelStore extends Singleton
|
|
|
|
|
used_size: "",
|
|
|
|
|
used_percentage: "0"
|
|
|
|
|
}
|
|
|
|
|
@observable userName = "";
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
|
|
|
|
super();
|
|
|
|
|
this.isLogin = Boolean(localStorage.getItem(StoreageKeys.IsLogin));
|
|
|
|
|
this.userName = localStorage.getItem(StoreageKeys.UserName) || "";
|
|
|
|
|
|
|
|
|
|
//每20分钟发送一次心跳包
|
|
|
|
|
setInterval(() =>
|
|
|
|
@ -48,8 +50,8 @@ export class TopPanelStore extends Singleton
|
|
|
|
|
//有前面层视图的时候隐藏绘图区域
|
|
|
|
|
needOpacityEls.forEach(el =>
|
|
|
|
|
el.style.opacity = this.isLogin && !this.openMain ? "1" : "0"
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
async UpdateFileList()
|
|
|
|
|
{
|
|
|
|
|