Commit 7679c1e1 by liuwange1

增加统一参数

parent 894d3b8e
......@@ -25,6 +25,10 @@ export default {
},
post: function (path = '', data = {}) {
return new Promise(function (resolve, reject) {
if (path.indexOf('osc') > -1) {
data.address = '192.168.0.255';
data.port = '7000';
}
axios.post(path, data)
.then(function (response) {
resolve(response.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment