Refactor & Clean up

This commit is contained in:
syuilo
2018-11-09 08:13:34 +09:00
parent ba845f5218
commit 60ef3e3563
154 changed files with 438 additions and 481 deletions

View File

@@ -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;

View File

@@ -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;
});

View File

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