Fix
This commit is contained in:
parent
b335975c97
commit
0d3117e472
4 changed files with 7 additions and 2 deletions
|
@ -82,8 +82,10 @@ export default (opts) => ({
|
||||||
}
|
}
|
||||||
this.inited = true;
|
this.inited = true;
|
||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
|
if (opts.onInited) opts.onInited(this);
|
||||||
}, e => {
|
}, e => {
|
||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
|
if (opts.onInited) opts.onInited(this);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,10 @@ export default Vue.extend({
|
||||||
if (document.hidden || !self.isScrollTop()) {
|
if (document.hidden || !self.isScrollTop()) {
|
||||||
self.$store.commit('pushBehindNote', note);
|
self.$store.commit('pushBehindNote', note);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onInited: (self) => {
|
||||||
|
self.$emit('loaded');
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="header" ref="root" :class="{ shadow: $store.state.device.useShadow }">
|
<div class="header" ref="root" :class="{ shadow: $store.state.device.useShadow }">
|
||||||
<p class="warn" v-if="env != 'production'">{{ $t('@.do-not-use-in-production') }} <a href="/assets/flush.html?force">Flush</a></p>
|
|
||||||
<div class="main" ref="main">
|
<div class="main" ref="main">
|
||||||
<div class="backdrop"></div>
|
<div class="backdrop"></div>
|
||||||
<div class="content" ref="mainContainer">
|
<div class="content" ref="mainContainer">
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
</ui-container>
|
</ui-container>
|
||||||
|
|
||||||
<mk-notes ref="timeline" :pagination="pagination" @inited="() => $emit('loaded')"/>
|
<mk-notes ref="timeline" :pagination="pagination" @loaded="() => $emit('loaded')"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue