Merge pull request #588 from futuremeng/master

fix: 当options为空时无限循环
This commit is contained in:
Archer
2025-01-22 10:04:00 +08:00
committed by GitHub

View File

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