fix(cascader): prevent log error for before filter (#1582)

This commit is contained in:
Ernest 2021-03-09 22:20:15 +08:00 committed by GitHub
parent 272b8c76c8
commit 872327a7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,6 +504,7 @@ export default defineComponent({
if (isPromise(passed)) {
passed.then(calculateSuggestions)
.catch(() => { /* prevent log error */ })
} else if (passed !== false) {
calculateSuggestions()
} else {