Merge pull request #588 from futuremeng/master

fix: 当options为空时无限循环
master
Archer 10 months ago committed by GitHub
commit 9bd7ae1097
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -154,6 +154,7 @@ export default defineComponent({
const getOptions = async (fn: Function, item: FormSchema) => { const getOptions = async (fn: Function, item: FormSchema) => {
const options = await fn() const options = await fn()
if (!options || options.length == 0) return
setSchema([ setSchema([
{ {
field: item.field, field: item.field,

Loading…
Cancel
Save