
vue/react 全局Loading
借助medalsoft/doaf。
·
借助medalsoft/doaf
import { Loading } from '@medalsoft/doaf';
// 编辑
const onEdit = (record) => {
Loading.show();
GetUserApplyById(record.id).then((res) => {
if (res.success) {
Loading.hide();
childMethodRef.current.onEditVal(res?.data);
onOutAccount();
} else {
Loading.hide();
onError(res.msg);
}
});
};
全局loading
更多推荐
所有评论(0)