Merge pull request #3419 from dataease/pr@dev_eslint_auto_fix

Pr@dev eslint auto fix
This commit is contained in:
dataeaseShu 2022-10-24 14:41:08 +08:00 committed by GitHub
commit fcbd11ef15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,8 @@ export default {
if (res) {
const Fn = Function
const dynamicCode = res.data || res
this.mode = new Fn(`return ${dynamicCode}`)()
const component = new Fn(`return ${dynamicCode}`)()
this.mode = component.default || component
}
}
}