Skip to content

Commit c89417f

Browse files
fix(loading): useLoading is not working as expected (#3877)
* fix(loading): useLoading is not working as expected * chore: remove comment --------- Co-authored-by: likui628 <[email protected]>
1 parent dcba0ca commit c89417f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Loading/src/createLoading.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ export function createLoading(props?: Partial<LoadingProps>, target?: HTMLElemen
2121

2222
let container: Nullable<HTMLElement> = null;
2323
if (wait) {
24-
// TODO fix https://github.com/anncwb/vue-vben-admin/issues/438
2524
setTimeout(() => {
26-
container && render(vm, (container = document.createElement('div')));
25+
render(vm, (container = document.createElement('div')));
2726
}, 0);
2827
} else {
2928
render(vm, (container = document.createElement('div')));

0 commit comments

Comments
 (0)