誰もフォローしていないときはローカルタイムラインを表示するように

This commit is contained in:
syuilo 2018-05-06 14:35:28 +09:00
parent 638a2ab684
commit c6492d3d58
2 changed files with 12 additions and 0 deletions

View file

@ -31,6 +31,12 @@ export default Vue.extend({
};
},
created() {
if ((this as any).os.i.followingCount == 0) {
this.src = 'local';
}
},
mounted() {
(this.$refs.tl as any).$once('loaded', () => {
this.$emit('loaded');

View file

@ -75,6 +75,12 @@ export default Vue.extend({
}
},
created() {
if ((this as any).os.i.followingCount == 0) {
this.src = 'local';
}
},
mounted() {
document.title = 'Misskey';