From 7856e2bc3d0955e07ed3d1b64778f04ea5e067fb Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 19 Jun 2021 00:18:17 +0800 Subject: [PATCH] chore: revise based on comments Signed-off-by: Wing-Kam Wong --- packages/nc-gui/components/changeEnv.vue | 2 +- packages/nc-gui/components/project/settings/env.vue | 2 +- packages/nc-gui/pages/project/id.vue | 2 +- packages/nc-gui/pages/user/authentication/signin.vue | 4 ++-- packages/nc-gui/pages/user/authentication/signup/_token.vue | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui/components/changeEnv.vue b/packages/nc-gui/components/changeEnv.vue index a28e158bc6..344faa9280 100644 --- a/packages/nc-gui/components/changeEnv.vue +++ b/packages/nc-gui/components/changeEnv.vue @@ -72,7 +72,7 @@ await new Promise(resolve => { const interv = setInterval(() => { axios.create({ - baseURL: `${$axios.defaults.baseURL}/dashboard`, + baseURL: `${this.$axios.defaults.baseURL}/dashboard`, }).get('').then(() => { this.projectReloading = false; clearInterval(interv); diff --git a/packages/nc-gui/components/project/settings/env.vue b/packages/nc-gui/components/project/settings/env.vue index 1ea1eb7c46..bc581bc3be 100644 --- a/packages/nc-gui/components/project/settings/env.vue +++ b/packages/nc-gui/components/project/settings/env.vue @@ -62,7 +62,7 @@ export default { await new Promise(resolve => { const interv = setInterval(() => { axios.create({ - baseURL: `${$axios.defaults.baseURL}/dashboard` + baseURL: `${this.$axios.defaults.baseURL}/dashboard` }).get('').then(() => { this.projectReloading = false; clearInterval(interv); diff --git a/packages/nc-gui/pages/project/id.vue b/packages/nc-gui/pages/project/id.vue index 5d802decc2..c584e06a33 100644 --- a/packages/nc-gui/pages/project/id.vue +++ b/packages/nc-gui/pages/project/id.vue @@ -1113,7 +1113,7 @@ export default { } axios.create({ - baseURL: `${$axios.defaults.baseURL}/dashboard`, + baseURL: `${this.$axios.defaults.baseURL}/dashboard`, }).get('').then(() => { toast.goAway(100); this.projectReloading = false; diff --git a/packages/nc-gui/pages/user/authentication/signin.vue b/packages/nc-gui/pages/user/authentication/signin.vue index 46adc3bd13..4da53273a8 100644 --- a/packages/nc-gui/pages/user/authentication/signin.vue +++ b/packages/nc-gui/pages/user/authentication/signin.vue @@ -105,7 +105,7 @@
@@ -154,7 +154,7 @@