提交 39827c46 编写于 作者: KK's avatar KK

http加载

上级 ac946cce
import axios, { AxiosResponse } from 'axios';
import qs from 'qs';
import { HttpResponse } from './http-response';
import { Loading } from '../loading/loading';
/**
* Http net 对象
* 调用 getInstance() 获取实例
......@@ -229,6 +230,7 @@ export class Http {
*/
private beginLoading(): void {
// todo 开始加载
Loading.show();
}
/**
......@@ -244,6 +246,7 @@ export class Http {
setTimeout(() => {
if (this.loadingCount === 0) {
// todo 停止加载
Loading.hidden();
}
}, 500);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册