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

http加载

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