Commit f8e6ddfbeeaa3925e5788b69e9c7d9c980d3b9ac
1 parent
1c48cdec
Exists in
master
【工具】GM工具
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
src/components/PlayerEdit.vue
... | ... | @@ -92,11 +92,16 @@ export default { |
92 | 92 | }, |
93 | 93 | methods: { |
94 | 94 | ontest: function (event) { |
95 | - axios.get("http://localhost:9002/api/gm/action").then((response) => { | |
96 | - console.log(response.data) | |
95 | + axios.post(this.serverselected, { | |
96 | + Action: '服务器操作', | |
97 | + Args: ["服务器信息"] | |
97 | 98 | }) |
98 | - // let response = await axios.get('http://www.baidu.com/') | |
99 | - // message.value = response.data | |
99 | + .then(function (response) { | |
100 | + console.log(response); | |
101 | + }) | |
102 | + .catch(function (error) { | |
103 | + console.log(error); | |
104 | + }); | |
100 | 105 | }, |
101 | 106 | } |
102 | 107 | } | ... | ... |