diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-25 01:47:01 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-25 01:47:01 +0900 |
| commit | da874f3383088dddbf7ce441b0c9d8f6512dfc9b (patch) | |
| tree | b7eb972a66372de998bcf37970ac3c69e229fe0a /src/client/components/note.vue | |
| parent | refactor(client): Use v-t for i18n (diff) | |
| download | sharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.tar.gz sharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.tar.bz2 sharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.zip | |
perf(client): Use v-once for static contents
Diffstat (limited to 'src/client/components/note.vue')
| -rw-r--r-- | src/client/components/note.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 062ca50188..376894f34b 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -34,19 +34,19 @@ </div> </div> <article class="article"> - <mk-avatar class="avatar" :user="appearNote.user"/> + <mk-avatar class="avatar" :user="appearNote.user" v-once/> <div class="main"> <x-note-header class="header" :note="appearNote" :mini="true"/> <div class="body" v-if="appearNote.deletedAt == null" ref="noteBody"> <p v-if="appearNote.cw != null" class="cw"> - <mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" /> + <mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" v-once/> <x-cw-button v-model="showContent" :note="appearNote"/> </p> <div class="content" v-show="appearNote.cw == null || showContent"> <div class="text"> <span v-if="appearNote.isHidden" style="opacity: 0.5">({{ $t('private') }})</span> <router-link class="reply" v-if="appearNote.replyId" :to="`/notes/${appearNote.replyId}`"><fa :icon="faReply"/></router-link> - <mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis"/> + <mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" v-once/> <a class="rp" v-if="appearNote.renote != null">RN:</a> </div> <div class="files" v-if="appearNote.files.length > 0"> |