|  |  | 
 |  |  |     this.$axios({ | 
 |  |  |       method: 'get', | 
 |  |  |       url:`/api/server/media_server/online/list`, | 
 |  |  |     }).then(function (res) { | 
 |  |  |     }).then((res) => { | 
 |  |  |       if (typeof (callback) == "function") callback(res.data) | 
 |  |  |     }).catch(function (error) { | 
 |  |  |     }).catch((error) => { | 
 |  |  |       console.log(error); | 
 |  |  |     }); | 
 |  |  |   } | 
 |  |  | 
 |  |  |       console.log(error); | 
 |  |  |     }); | 
 |  |  |   } | 
 |  |  |  | 
 |  |  |   delete(id, callback) { | 
 |  |  |     this.$axios({ | 
 |  |  |       method: 'delete', | 
 |  |  |       url:`/api/server/media_server/delete`, | 
 |  |  |       params: { | 
 |  |  |         id: id | 
 |  |  |       } | 
 |  |  |     }).then(function (res) { | 
 |  |  |       if (typeof (callback) == "function") callback(res.data) | 
 |  |  |     }).catch(function (error) { | 
 |  |  |       console.log(error); | 
 |  |  |     }); | 
 |  |  |   } | 
 |  |  | } | 
 |  |  |  | 
 |  |  | export default MediaServer; |