Browse Source

added mockapiurl to config for custom app's event

Skylsmoi 6 years ago
parent
commit
da64252224
2 changed files with 3 additions and 1 deletions
  1. 1 0
      dist/index.html
  2. 2 1
      src/appFactory.js

+ 1 - 0
dist/index.html View File

@@ -40,6 +40,7 @@
40 40
       let prevSelectedApp = {name: ''} // default value
41 41
 
42 42
       GLOBAL_renderApp = app => {
43
+        console.log('GLOBAL_renderApp => ', app)
43 44
         const selectedApp = (() => {
44 45
           switch (app.config.name) {
45 46
             case 'PageHtml':

+ 2 - 1
src/appFactory.js View File

@@ -7,7 +7,8 @@ export function appFactory (WrappedComponent) {
7 7
       loggedUser: user.logged ? user : {},
8 8
       config: {
9 9
         ...appConfig,
10
-        apiUrl: FETCH_CONFIG.apiUrl
10
+        apiUrl: FETCH_CONFIG.apiUrl,
11
+        mockApiUrl: FETCH_CONFIG.mockApiUrl
11 12
       },
12 13
       content
13 14
     })