diff --git a/src/common/router.js b/src/common/router.js index b88197d6d8ab1b3ac088ef77912015f28c35bb20..0b45dcd4cc1baa9c67ea9eeb1191479b584ee891 100644 --- a/src/common/router.js +++ b/src/common/router.js @@ -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