From 0fe6003e61707bd97bd1c03e3fb7656ccedf2274 Mon Sep 17 00:00:00 2001 From: PKAQ Date: Wed, 10 Jan 2018 19:24:49 +0800 Subject: [PATCH] fix #616 (#622) --- src/common/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/router.js b/src/common/router.js index b88197d6..0b45dcd4 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 -- GitLab