refactor: error => info

main
wu.jian2 2 years ago
parent c9383c1393
commit 92b231541f

@ -100,14 +100,14 @@ export default {
const scriptMethod = new Function(scriptAfterReplacement) const scriptMethod = new Function(scriptAfterReplacement)
_res.data = scriptMethod() _res.data = scriptMethod()
} catch (error) { } catch (error) {
console.error('JS数据集脚本执行失败', error) console.info('JS数据集脚本执行失败', error)
} }
} }
} }
config = this.dataFormatting(config, _res) config = this.dataFormatting(config, _res)
this.changeChartConfig(config) this.changeChartConfig(config)
}).catch((err) => { }).catch((err) => {
console.error(err) console.info(err)
}).finally(() => { }).finally(() => {
resolve(config) resolve(config)
}) })
@ -151,7 +151,7 @@ export default {
const scriptMethod = new Function(scriptAfterReplacement) const scriptMethod = new Function(scriptAfterReplacement)
_res.data = scriptMethod() _res.data = scriptMethod()
} catch (error) { } catch (error) {
console.error('JS数据集脚本执行失败', error) console.info('JS数据集脚本执行失败', error)
} }
} }
} }
@ -165,7 +165,7 @@ export default {
} }
} }
}).catch(err => { }).catch(err => {
console.error(err) console.info(err)
}).finally(() => { }).finally(() => {
resolve(config) resolve(config)
}) })

Loading…
Cancel
Save