fix: fix the file path and delete console in mock data 21/94321/1
authorcyuamber <xuranyjy@chinamobile.com>
Tue, 27 Aug 2019 05:27:26 +0000 (13:27 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Tue, 27 Aug 2019 05:27:32 +0000 (13:27 +0800)
Change-Id: I61c200e1e003292387589969065b66de75594854
Issue-ID: USECASEUI-306
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/app.component.less
usecaseui-portal/src/app/mock/routes.js
usecaseui-portal/src/app/mock/server.js

index ade860b..4055dc8 100644 (file)
@@ -28,7 +28,7 @@ nz-layout {
         left: 0;
         z-index: 100;
         height: 100vh; 
-        background: #313449 url('assets/images/UUIMenuBar.png') no-repeat;
+        background: #313449 url('../assets/images/UUIMenuBar.png') no-repeat;
         background-size: 100%;
         .siderContent{
             width: 100%;
index aad505f..269f008 100644 (file)
@@ -1,10 +1,8 @@
 // proxy routers setting
 module.exports =
     {
-
         "/api/*": "/$1",
         "/*/*": "/$1_$2",
         "/*/*/*": "/$1_$2_$3",
         "/*/*/*/*": "/$1_$2_$3_$4",
-
     }
index 2b8f5fe..4577328 100644 (file)
@@ -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));
 }