Skip to content

Commit 4017d22

Browse files
authored
Merge pull request #15 from zFitness/master
fix: loading
2 parents 6b79e3b + a1d6c81 commit 4017d22

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/components/src/__builtins__/loading.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ export const loading = async (
55
processor: () => Promise<any>
66
) => {
77
let ins = null
8-
let loading = setTimeout(() => {
9-
ins = MessagePlugin.loading(title)
10-
}, 100)
8+
ins = MessagePlugin.loading(title)
119
try {
1210
return await processor()
1311
} finally {
1412
MessagePlugin.close(ins)
15-
clearTimeout(loading)
1613
}
1714
}

0 commit comments

Comments
 (0)