|
@ -2,6 +2,7 @@ import util from '../utils/util'; |
|
|
// import { app as vm } from '../main';
|
|
|
// import { app as vm } from '../main';
|
|
|
const islog = true; |
|
|
const islog = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class Server { |
|
|
export class Server { |
|
|
request(url,data,method,header,isDefaultGet,failMsg){ |
|
|
request(url,data,method,header,isDefaultGet,failMsg){ |
|
|
return new Promise(async (rs,rj)=>{ |
|
|
return new Promise(async (rs,rj)=>{ |
|
|