You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2019/09/19 09:53:46 UTC

[dubbo-admin] branch develop updated: using this.$axios instead of axios (#509)

This is an automated email from the ASF dual-hosted git repository.

iluo 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 b3ed3b1  using this.$axios instead of axios (#509)
b3ed3b1 is described below

commit b3ed3b142317a70fc74ade8d9a0bcc7a32cfe9c7
Author: He Yunxia <lo...@163.com>
AuthorDate: Thu Sep 19 17:53:42 2019 +0800

    using this.$axios instead of axios (#509)
    
    remove baseURL: '/api/dev'
---
 dubbo-admin-ui/src/components/test/TestMethod.vue | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dubbo-admin-ui/src/components/test/TestMethod.vue b/dubbo-admin-ui/src/components/test/TestMethod.vue
index c5da6aa..2881dd2 100644
--- a/dubbo-admin-ui/src/components/test/TestMethod.vue
+++ b/dubbo-admin-ui/src/components/test/TestMethod.vue
@@ -51,7 +51,6 @@
 <script>
   import JsonEditor from '@/components/public/JsonEditor'
   import Breadcrumb from '@/components/public/Breadcrumb'
-  import axios from 'axios'
   import set from 'lodash/set'
   import util from '@/util'
 
@@ -60,11 +59,9 @@
     components: {
       JsonEditor,
       Breadcrumb,
-      axios
     },
     data () {
       return {
-        baseURL: '/api/dev',
         success: null,
         breads: [
           {
@@ -98,7 +95,7 @@
           parameterTypes: this.method.parameterTypes,
           params: this.method.json
         }
-        axios.post(this.baseURL + '/test', serviceTestDTO)
+        this.$axios.post('/test', serviceTestDTO)
           .then(response => {
             if (response && response.status === 200) {
               this.success = true