apiconfig.js 428 B

123456789101112131415161718192021
  1. /**
  2. * version 1.1.7
  3. */
  4. import request from 'request.js'
  5. class apiconfig {
  6. constructor(config = {}) {
  7. this.baseurl= 'http://120.27.95.106:9999/';
  8. this.pathconfig={
  9. checkUpdate: this.baseurl +'/checkVersion'
  10. }
  11. }
  12. getCheckVersion(config){
  13. return request.get(this.pathconfig.checkUpdate,config);
  14. }
  15. }
  16. if (!global.$apiconfig) {
  17. global.$apiconfig = new apiconfig();
  18. }
  19. export default global.$apiconfig;