فهرست منبع

feat: iframe 环境下注入 工作桌面依赖

zhangyuhan 2 سال پیش
والد
کامیت
83beaff5a5

+ 4 - 1
src/web/templates/frontRouter/pc/entpc/sess/index.html

@@ -74,7 +74,10 @@
                 container: '#main-app',
                 activeRule: '/',
                 props: {
-                  className: window.parent !== window ? 'in-app' : 'in-web'
+                  className: window.parent !== window ? 'in-app' : 'in-web',
+                  inject: function (options) {
+                    options.Vue.prototype.$BRACE = window.$BRACE
+                  }
                 }
             }
         ],

+ 4 - 1
src/web/templates/frontRouter/pc/page_big_pc/sess/index.html

@@ -65,7 +65,10 @@
                 container: '#main-app',
                 activeRule: '/',
                 props: {
-                  className: window.parent !== window ? 'in-app' : 'in-web'
+                  className: window.parent !== window ? 'in-app' : 'in-web',
+                  inject: function (options) {
+                    options.Vue.prototype.$BRACE = window.$BRACE
+                  }
                 }
             }
         ],

+ 4 - 1
src/web/templates/frontRouter/pc/page_entbase_pc/sess/index.html

@@ -74,7 +74,10 @@
                 container: '#main-app',
                 activeRule: '/',
                 props: {
-                  className: window.parent !== window ? 'in-app' : 'in-web'
+                  className: window.parent !== window ? 'in-app' : 'in-web',
+                  inject: function (options) {
+                    options.Vue.prototype.$BRACE = window.$BRACE
+                  }
                 }
             }
         ],

+ 4 - 1
src/web/templates/micro/social-pc/index.html

@@ -70,7 +70,10 @@
                 container: '#main-app',
                 activeRule: '/',
                 props: {
-                  className: window.parent !== window ? 'in-app' : 'in-web'
+                  className: window.parent !== window ? 'in-app' : 'in-web',
+                  inject: function (options) {
+                    options.Vue.prototype.$BRACE = window.$BRACE
+                  }
                 }
             }
         ],

+ 4 - 1
src/web/templates/micro/web-pc/index.html

@@ -75,7 +75,10 @@
                 container: '#main-app',
                 activeRule: '/swordfish/page_web_pc',
                 props: {
-                  className: window.parent !== window ? 'in-app' : 'in-web'
+                  className: window.parent !== window ? 'in-app' : 'in-web',
+                  inject: function (options) {
+                    options.Vue.prototype.$BRACE = window.$BRACE
+                  }
                 }
             }
         ],