mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
Fix bug
This commit is contained in:
parent
f1501e018b
commit
9c9323d4d0
5 changed files with 9 additions and 5 deletions
|
@ -13,6 +13,7 @@ export default class Connection extends Stream {
|
||||||
// 最終利用日時を更新するため定期的にaliveメッセージを送信
|
// 最終利用日時を更新するため定期的にaliveメッセージを送信
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
this.send({ type: 'alive' });
|
this.send({ type: 'alive' });
|
||||||
|
me.last_used_at = new Date();
|
||||||
}, 1000 * 60);
|
}, 1000 * 60);
|
||||||
|
|
||||||
// 自分の情報が更新されたとき
|
// 自分の情報が更新されたとき
|
||||||
|
|
|
@ -23,12 +23,14 @@ export default Vue.extend({
|
||||||
docsUrl
|
docsUrl
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
mounted() {
|
||||||
'os.i'() {
|
this.$watch('os.i', () => {
|
||||||
if ((this as any).os.i.twitter) {
|
if ((this as any).os.i.twitter) {
|
||||||
if (this.form) this.form.close();
|
if (this.form) this.form.close();
|
||||||
}
|
}
|
||||||
}
|
}, {
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
connect() {
|
connect() {
|
||||||
|
|
|
@ -126,7 +126,7 @@ export default Vue.extend({
|
||||||
created() {
|
created() {
|
||||||
this.widgets.left = this.left;
|
this.widgets.left = this.left;
|
||||||
this.widgets.right = this.right;
|
this.widgets.right = this.right;
|
||||||
this.$watch('os.i', i => {
|
this.$watch('os.i.client_settings', i => {
|
||||||
this.widgets.left = this.left;
|
this.widgets.left = this.left;
|
||||||
this.widgets.right = this.right;
|
this.widgets.right = this.right;
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -56,6 +56,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
const ago = (new Date().getTime() - new Date((this as any).os.i.last_used_at).getTime()) / 1000
|
const ago = (new Date().getTime() - new Date((this as any).os.i.last_used_at).getTime()) / 1000
|
||||||
const isHisasiburi = ago >= 3600;
|
const isHisasiburi = ago >= 3600;
|
||||||
|
(this as any).os.i.last_used_at = new Date();
|
||||||
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';
|
||||||
|
|
|
@ -111,7 +111,7 @@ export default Vue.extend({
|
||||||
this.widgets = (this as any).os.i.client_settings.mobile_home;
|
this.widgets = (this as any).os.i.client_settings.mobile_home;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$watch('os.i', i => {
|
this.$watch('os.i.client_settings', i => {
|
||||||
this.widgets = (this as any).os.i.client_settings.mobile_home;
|
this.widgets = (this as any).os.i.client_settings.mobile_home;
|
||||||
}, {
|
}, {
|
||||||
deep: true
|
deep: true
|
||||||
|
|
Loading…
Reference in a new issue