mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Fix bug
This commit is contained in:
parent
0516353afd
commit
ea9265b30b
@ -46,9 +46,10 @@ export default Vue.extend({
|
|||||||
this.$store.commit('setUiHeaderHeight', 48);
|
this.$store.commit('setUiHeaderHeight', 48);
|
||||||
|
|
||||||
if ((this as any).os.isSignedIn) {
|
if ((this as any).os.isSignedIn) {
|
||||||
const ago = (new Date().getTime() - new Date((this as any).os.i.lastUsedAt).getTime()) / 1000
|
const ago = (new Date().getTime() - new Date((this as any).os.i.lastUsedAt).getTime()) / 1000;
|
||||||
const isHisasiburi = ago >= 3600;
|
const isHisasiburi = ago >= 3600;
|
||||||
(this as any).os.i.lastUsedAt = new Date();
|
(this as any).os.i.lastUsedAt = new Date();
|
||||||
|
(this as any).os.bakeMe();
|
||||||
if (isHisasiburi) {
|
if (isHisasiburi) {
|
||||||
(this.$refs.welcomeback as any).style.display = 'block';
|
(this.$refs.welcomeback as any).style.display = 'block';
|
||||||
(this.$refs.main as any).style.overflow = 'hidden';
|
(this.$refs.main as any).style.overflow = 'hidden';
|
||||||
@ -132,7 +133,7 @@ root(isDark)
|
|||||||
line-height 48px
|
line-height 48px
|
||||||
margin 0
|
margin 0
|
||||||
text-align center
|
text-align center
|
||||||
color #888
|
color isDark ? #fff : #888
|
||||||
opacity 0
|
opacity 0
|
||||||
|
|
||||||
> .container
|
> .container
|
||||||
|
@ -59,9 +59,10 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const ago = (new Date().getTime() - new Date((this as any).os.i.lastUsedAt).getTime()) / 1000
|
const ago = (new Date().getTime() - new Date((this as any).os.i.lastUsedAt).getTime()) / 1000;
|
||||||
const isHisasiburi = ago >= 3600;
|
const isHisasiburi = ago >= 3600;
|
||||||
(this as any).os.i.lastUsedAt = new Date();
|
(this as any).os.i.lastUsedAt = new Date();
|
||||||
|
(this as any).os.bakeMe();
|
||||||
if (isHisasiburi) {
|
if (isHisasiburi) {
|
||||||
(this.$refs.welcomeback as any).style.display = 'block';
|
(this.$refs.welcomeback as any).style.display = 'block';
|
||||||
(this.$refs.main as any).style.overflow = 'hidden';
|
(this.$refs.main as any).style.overflow = 'hidden';
|
||||||
|
Loading…
Reference in New Issue
Block a user