fix(loading): useLoading is not working as expected (#3877)
* fix(loading): useLoading is not working as expected * chore: remove comment --------- Co-authored-by: likui628 <90845831+likui628@users.noreply.github.com>
This commit is contained in:
parent
dcba0ca837
commit
c89417f523
|
|
@ -21,9 +21,8 @@ export function createLoading(props?: Partial<LoadingProps>, target?: HTMLElemen
|
||||||
|
|
||||||
let container: Nullable<HTMLElement> = null;
|
let container: Nullable<HTMLElement> = null;
|
||||||
if (wait) {
|
if (wait) {
|
||||||
// TODO fix https://github.com/anncwb/vue-vben-admin/issues/438
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
container && render(vm, (container = document.createElement('div')));
|
render(vm, (container = document.createElement('div')));
|
||||||
}, 0);
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
render(vm, (container = document.createElement('div')));
|
render(vm, (container = document.createElement('div')));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue