global.js 328 B

1234567891011121314
  1. const serverip ="192.168.1.100:9092"
  2. const host = 'http://' + serverip + '/index/api';
  3. const secret = 'HKF3wqABTqxNK49nXEhrHzALVG9i0LV4';
  4. const baseMediaUrl='ws://' + serverip + '/';
  5. function genApiUrl(method){
  6. return host+method+"?secret="+secret;
  7. }
  8. export default{
  9. serverip,
  10. host,
  11. secret,
  12. genApiUrl,
  13. baseMediaUrl
  14. }