mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-09-04 14:19:49 +08:00
fix: 优化plugin-model的错误日志
This commit is contained in:
parent
286040d678
commit
9fd4fff3e2
@ -141,7 +141,7 @@ export const genModels = (imports, absSrcPath) => {
|
|||||||
const models = sort(raw);
|
const models = sort(raw);
|
||||||
|
|
||||||
if (checkDuplicates(contents.map(ele => ele.namespace))) {
|
if (checkDuplicates(contents.map(ele => ele.namespace))) {
|
||||||
throw Error('umi: models 中包含重复的 namespace!');
|
throw Error('plugin-model: models 中包含重复的 namespace!');
|
||||||
}
|
}
|
||||||
return raw.sort(
|
return raw.sort(
|
||||||
(a, b) => models.indexOf(a.namespace) - models.indexOf(b.namespace)
|
(a, b) => models.indexOf(a.namespace) - models.indexOf(b.namespace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user