mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 11:56:44 -06:00
parent
7c03d37caa
commit
5d42ee2359
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
<p class="empty" v-else-if="tags.length == 0"><fa icon="exclamation-circle"/>{{ $t('empty') }}</p>
|
<p class="empty" v-else-if="tags.length == 0"><fa icon="exclamation-circle"/>{{ $t('empty') }}</p>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<vue-word-cloud
|
<vue-word-cloud
|
||||||
:words="tags.slice(0, 20).map(x => [x.name, x.count])"
|
:words="tags.slice(0, 20).map(x => [x.tag, x.count])"
|
||||||
:color="color"
|
:color="color"
|
||||||
:spacing="1">
|
:spacing="1">
|
||||||
<template slot-scope="{word, text, weight}">
|
<template slot-scope="{word, text, weight}">
|
||||||
|
@ -43,7 +43,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetch() {
|
fetch() {
|
||||||
this.$root.api('aggregation/hashtags').then(tags => {
|
this.$root.api('hashtags/trend').then(tags => {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue