Refactor & Clean up
This commit is contained in:
parent
ba845f5218
commit
60ef3e3563
154 changed files with 438 additions and 481 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue