Commit 0fe6003e authored by PKAQ's avatar PKAQ Committed by 偏右

fix #616 (#622)

parent 479ddf72
......@@ -6,7 +6,9 @@ let routerDataCache;
const modelNotExisted = (app, model) => (
// eslint-disable-next-line
!app._models.some(({ namespace }) => namespace === model)
!app._models.some(({ namespace }) => {
return namespace === model.substring(model.lastIndexOf('/') + 1);
})
);
// wrapper of dynamic
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment