| | |
| | | <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认"> |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="test01Container" /> |
| | | <script> |
| | | $Lightning.use("c:test01App", function () { |
| | | $Lightning.createComponent("c:relevant", |
| | | {}, |
| | | "test01Container", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | var interval = setInterval(()=>{ |
| | | var hrefStr = window.location.href; |
| | | if (hrefStr.indexOf("Refresh") != -1) { |
| | | var arr = hrefStr.split("=="); |
| | | window.opener.parent.location.href = "/"+arr[1]; |
| | | top.window.close(); |
| | | clearInterval(interval); |
| | | } |
| | | },1000); |
| | | |
| | | |
| | | </script> |
| | | |
| | | </apex:page> |
| | | <!-- <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认"> --> |
| | | <apex:page showHeader="false" sidebar="false" id="test01" title="1.相关性确认" lightningStylesheets="true">] |
| | | <apex:includeLightning /> |
| | | <div style="width:100%;height:100%;" id="test01Container" /> |
| | | <script> |
| | | $Lightning.use("c:test01App", function () { |
| | | $Lightning.createComponent("c:relevant", |
| | | {}, |
| | | "test01Container", |
| | | function (cmp) { |
| | | console.log('Component created, do something cool here'); |
| | | }); |
| | | }); |
| | | |
| | | var interval = setInterval(()=>{ |
| | | var hrefStr = window.location.href; |
| | | if (hrefStr.indexOf("Refresh") != -1) { |
| | | var arr = hrefStr.split("=="); |
| | | window.opener.parent.location.href = "/"+arr[1]; |
| | | top.window.close(); |
| | | clearInterval(interval); |
| | | } |
| | | },1000); |
| | | |
| | | |
| | | </script> |
| | | |
| | | </apex:page> |