自前ルーティング (#6759)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
This commit is contained in:
syuilo
2020-10-25 01:21:41 +09:00
committed by GitHub
parent d4da5a1eea
commit 254cfaea28
59 changed files with 625 additions and 220 deletions

View File

@ -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', {