fix: 🐛 use router

This commit is contained in:
ThatOneCalculator 2022-08-16 23:50:35 -07:00
parent 5d8f695206
commit 2781a0aca4
3 changed files with 51 additions and 50 deletions

View File

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.118.1-calc.6.7",
"version": "12.118.1-calc.6.8",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -46,8 +46,7 @@
<MkInstanceTicker v-if="showTicker" class="ticker" :instance="appearNote.user.instance"/>
</div>
</header>
<MkA class="created-at" :to="notePage(appearNote)">
<div class="main">
<div class="main" @click="router.push(notePage(appearNote))">
<div class="body">
<p v-if="appearNote.cw != null" class="cw">
<Mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
@ -99,7 +98,6 @@
</button>
</footer>
</div>
</MkA>
</article>
<MkNoteSub v-for="note in directReplies" :key="note.id" :note="note" class="reply" :conversation="replies"/>
</div>
@ -141,6 +139,8 @@ import { i18n } from '@/i18n';
import { getNoteMenu } from '@/scripts/get-note-menu';
import { useNoteCapture } from '@/scripts/use-note-capture';
const router = useRouter();
const props = defineProps<{
note: misskey.entities.Note;
pinned?: boolean;

View File

@ -119,6 +119,7 @@ import MkVisibility from '@/components/visibility.vue';
import { pleaseLogin } from '@/scripts/please-login';
import { focusPrev, focusNext } from '@/scripts/focus';
import { checkWordMute } from '@/scripts/check-word-mute';
import { useRouter } from '@/router';
import { userPage } from '@/filters/user';
import * as os from '@/os';
import { defaultStore, noteViewInterruptors } from '@/store';