瀏覽代碼

fixed missing variable rename in index.html

Skylsmoi 6 年之前
父節點
當前提交
18f83a10cc
共有 1 個文件被更改,包括 2 次插入9 次删除
  1. 2 9
      dist/index.html

+ 2 - 9
dist/index.html 查看文件

35
 
35
 
36
     <script type='text/javascript'>
36
     <script type='text/javascript'>
37
       let prevSelectedApp = {name: ''} // default value
37
       let prevSelectedApp = {name: ''} // default value
38
-      /*
39
-        app : {
40
-          loggedUser: {id, isLoggedIn, username, firstname, lastname, email, avatar}
41
-          workspace: {id, title},
42
-          appConfig: {name, componentLeft, componentRight, customClass, icon},
43
-          content: {id, title, type, status}
44
-        }
45
-      */
38
+
46
       GLOBAL_renderApp = app => {
39
       GLOBAL_renderApp = app => {
47
         const selectedApp = (() => {
40
         const selectedApp = (() => {
48
           switch (app.config.name) {
41
           switch (app.config.name) {
54
         })()
47
         })()
55
 
48
 
56
         if (selectedApp.isRendered) {
49
         if (selectedApp.isRendered) {
57
-          GLOBAL_dispatchEvent(`${app.appConfig.name}_showApp`, app)
50
+          GLOBAL_dispatchEvent(`${app.config.name}_showApp`, app)
58
         } else {
51
         } else {
59
           selectedApp.renderApp(app)
52
           selectedApp.renderApp(app)
60
           selectedApp.isRendered = true
53
           selectedApp.isRendered = true