Skip to content
Permalink
Browse files
use global axios to support baseURL (#567)
  • Loading branch information
1120076969 committed Apr 30, 2020
1 parent 1a8aaf8 commit 4aff5fc0d47793a54b4d0972f8ce5bdc61aab2ad
Showing 1 changed file with 2 additions and 4 deletions.
@@ -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

0 comments on commit 4aff5fc

Please sign in to comment.