非ログイン時のトップにトレンドを表示するように

This commit is contained in:
syuilo
2018-06-22 18:32:21 +09:00
parent 09c5efc161
commit 6037b0acc5
4 changed files with 63 additions and 21 deletions

View File

@@ -24,6 +24,13 @@
import Vue from 'vue';
export default Vue.extend({
props: {
max: {
type: Number,
required: false,
default: undefined
}
},
data() {
return {
fetching: true,
@@ -37,6 +44,7 @@ export default Vue.extend({
fetch(cb?) {
this.fetching = true;
(this as any).api('notes', {
limit: this.max,
local: true,
reply: false,
renote: false,