From 27b93428f83342f82c93addd22804f32086b2d92 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Tue, 27 Aug 2019 13:27:26 +0800 Subject: fix: fix the file path and delete console in mock data Change-Id: I61c200e1e003292387589969065b66de75594854 Issue-ID: USECASEUI-306 Signed-off-by: cyuamber --- usecaseui-portal/src/app/mock/routes.js | 2 -- usecaseui-portal/src/app/mock/server.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usecaseui-portal/src/app/mock') diff --git a/usecaseui-portal/src/app/mock/routes.js b/usecaseui-portal/src/app/mock/routes.js index aad505f2..269f008c 100644 --- a/usecaseui-portal/src/app/mock/routes.js +++ b/usecaseui-portal/src/app/mock/routes.js @@ -1,10 +1,8 @@ // proxy routers setting module.exports = { - "/api/*": "/$1", "/*/*": "/$1_$2", "/*/*/*": "/$1_$2_$3", "/*/*/*/*": "/$1_$2_$3_$4", - } diff --git a/usecaseui-portal/src/app/mock/server.js b/usecaseui-portal/src/app/mock/server.js index 2b8f5fe0..45773284 100644 --- a/usecaseui-portal/src/app/mock/server.js +++ b/usecaseui-portal/src/app/mock/server.js @@ -74,6 +74,8 @@ function serverRewrite(routerpath) { routerpathArr[`/${newPath}`] = `/${item}`; }) //start to rewrite routers + // console.log(customersRouters, "===customersRouters") + // server.use(jsonServer.rewriter(customersRouters)) server.use(jsonServer.rewriter(routerpathArr)); } -- cgit 1.2.3-korg