summaryrefslogtreecommitdiff
path: root/src/client/pages/note.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-10-25 01:23:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-10-25 01:23:41 +0900
commit7bd2a6ad611ffa4e4a0c96e49dec93350e0616db (patch)
tree1a3ad6ba33e7bfd6fd884052f61805dc4d3aa365 /src/client/pages/note.vue
parentregedit (diff)
parent自前ルーティング (#6759) (diff)
downloadmisskey-7bd2a6ad611ffa4e4a0c96e49dec93350e0616db.tar.gz
misskey-7bd2a6ad611ffa4e4a0c96e49dec93350e0616db.tar.bz2
misskey-7bd2a6ad611ffa4e4a0c96e49dec93350e0616db.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/client/pages/note.vue')
-rw-r--r--src/client/pages/note.vue10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/pages/note.vue b/src/client/pages/note.vue
index cd31ccc338..a458d6c063 100644
--- a/src/client/pages/note.vue
+++ b/src/client/pages/note.vue
@@ -42,6 +42,12 @@ export default defineComponent({
MkRemoteCaution,
MkButton,
},
+ props: {
+ noteId: {
+ type: String,
+ required: true
+ }
+ },
data() {
return {
INFO: computed(() => this.note ? {
@@ -77,7 +83,7 @@ export default defineComponent({
};
},
watch: {
- $route: 'fetch'
+ noteId: 'fetch'
},
created() {
this.fetch();
@@ -86,7 +92,7 @@ export default defineComponent({
fetch() {
Progress.start();
os.api('notes/show', {
- noteId: this.$route.params.note
+ noteId: this.noteId
}).then(note => {
Promise.all([
os.api('users/notes', {