From 60ef3e3563c95008bde52818a7d638d1d8ff9b19 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 9 Nov 2018 08:13:34 +0900 Subject: Refactor & Clean up --- src/client/app/dev/views/app.vue | 2 +- src/client/app/dev/views/apps.vue | 2 +- src/client/app/dev/views/new-app.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/app/dev') diff --git a/src/client/app/dev/views/app.vue b/src/client/app/dev/views/app.vue index 4aced2274b..2379d71aa5 100644 --- a/src/client/app/dev/views/app.vue +++ b/src/client/app/dev/views/app.vue @@ -29,7 +29,7 @@ export default Vue.extend({ methods: { fetch() { this.fetching = true; - (this as any).api('app/show', { + this.$root.api('app/show', { appId: this.$route.params.id }).then(app => { this.app = app; diff --git a/src/client/app/dev/views/apps.vue b/src/client/app/dev/views/apps.vue index 4c8de9d48e..78a7cede98 100644 --- a/src/client/app/dev/views/apps.vue +++ b/src/client/app/dev/views/apps.vue @@ -30,7 +30,7 @@ export default Vue.extend({ }; }, mounted() { - (this as any).api('my/apps').then(apps => { + this.$root.api('my/apps').then(apps => { this.apps = apps; this.fetching = false; }); diff --git a/src/client/app/dev/views/new-app.vue b/src/client/app/dev/views/new-app.vue index 382d54fd67..298b6f9925 100644 --- a/src/client/app/dev/views/new-app.vue +++ b/src/client/app/dev/views/new-app.vue @@ -50,7 +50,7 @@ export default Vue.extend({ }, methods: { onSubmit() { - (this as any).api('app/create', { + this.$root.api('app/create', { name: this.name, description: this.description, callbackUrl: this.cb, -- cgit v1.2.3-freya