You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hy...@apache.org on 2020/04/30 08:38:14 UTC
[dubbo-admin] branch develop updated: use global axios to support
baseURL (#567)
This is an automated email from the ASF dual-hosted git repository.
hyunkun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-admin.git
The following commit(s) were added to refs/heads/develop by this push:
new 4aff5fc use global axios to support baseURL (#567)
4aff5fc is described below
commit 4aff5fc0d47793a54b4d0972f8ce5bdc61aab2ad
Author: ZEAL <11...@qq.com>
AuthorDate: Thu Apr 30 16:38:02 2020 +0800
use global axios to support baseURL (#567)
---
dubbo-admin-ui/src/components/metrics/ServiceRelation.vue | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dubbo-admin-ui/src/components/metrics/ServiceRelation.vue b/dubbo-admin-ui/src/components/metrics/ServiceRelation.vue
index 55dee6c..003455a 100644
--- a/dubbo-admin-ui/src/components/metrics/ServiceRelation.vue
+++ b/dubbo-admin-ui/src/components/metrics/ServiceRelation.vue
@@ -34,11 +34,9 @@
</template>
<script>
import Breadcrumb from '@/components/public/Breadcrumb'
- import axios from 'axios'
export default {
components: {
- Breadcrumb,
- axios
+ Breadcrumb
},
data: () => ({
baseURL: '/api/dev',
@@ -60,7 +58,7 @@
// eslint-disable-next-line no-undef
this.chartContent = echarts.init(document.getElementById('chartContent'))
this.chartContent.showLoading()
- axios.get(this.baseURL + '/metrics/relation')
+ this.$axios.get('/metrics/relation')
.then(response => {
if (response && response.status === 200) {
this.success = true