123
chenjingwu
2024-04-11 61d3da83d22c63d9ae7d434e3fdf023d5915f566
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<apex:page showHeader="false" sidebar="false" id="test02" title="3.关联已有询价">
    <apex:includeLightning />
    <div style="width:100%;height:100%;" id="test02Container" />
    <style>
        .slds-theme_error{
            --lwc-colorBackgroundToastError: #ba0517 !important;
        }
    </style>
    <script>
        $Lightning.use("c:test02App", function () {
            $Lightning.createComponent("c:tEnquiry",
                {},
                "test02Container",
                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];
                window.location.hash = '';
            }
        },1000);
    </script>
 
</apex:page>