fix
This commit is contained in:
		
							parent
							
								
									b6bfcc8ca1
								
							
						
					
					
						commit
						693496536d
					
				@ -169,6 +169,7 @@
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
    const isBaaS = false
 | 
			
		||||
    const h = document.body.clientHeight
 | 
			
		||||
        - $("header").css("height").replace("px", "")
 | 
			
		||||
    $("#main").css("height", h + "px");
 | 
			
		||||
 | 
			
		||||
@ -314,7 +314,11 @@ function displayOutput(obj) {
 | 
			
		||||
function initWSocket() {
 | 
			
		||||
    let host = $("#urlInput")[0].value;
 | 
			
		||||
    if (!host.startsWith("ws")) {
 | 
			
		||||
        host = "ws://" + host;
 | 
			
		||||
        if (location.href.startsWith("https")) {
 | 
			
		||||
            host = "wss://" + host;
 | 
			
		||||
        } else {
 | 
			
		||||
            host = "ws://" + host;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    if (host.endsWith("/SCIDE")) {
 | 
			
		||||
        host += "/SCExecutor";
 | 
			
		||||
@ -397,7 +401,7 @@ function changeAppInternal(requireRendering) {
 | 
			
		||||
            + "	            <select id=\"selectAction\" onchange=\"showDescription()\" class=\"custom-select\" style=\"-webkit-appearance: none;\"><option value=\"-1\">选择方法</option></select>		\n"
 | 
			
		||||
            + "                  </div>\n"
 | 
			
		||||
            + "                  <input type=\"text\" class=\"form-control\" id=\"argInput\" placeholder=\"填写参数\" >\n"
 | 
			
		||||
                       + "                  <div class=\"input-group-append input-group-text\">\n"
 | 
			
		||||
            + "                  <div class=\"input-group-append input-group-text\">\n"
 | 
			
		||||
 | 
			
		||||
            + "<input type=\"checkbox\" id=\"executeContractAsDebug\"   aria-label=\"Checkbox for isDebug\"  data-toggle=\"tooltip\"  title=\"模拟调用\"></input>"
 | 
			
		||||
            + "                  </div>\n"
 | 
			
		||||
@ -470,7 +474,7 @@ function triggerExecuteCurrentContract() {
 | 
			
		||||
    const argInput = $("#argInput");
 | 
			
		||||
    var contract = global.currentContract;
 | 
			
		||||
    executeContract(contract.id, funNode.functionName, argInput[0].value,
 | 
			
		||||
        fillResultInternal,executeContractAsDebug.checked);
 | 
			
		||||
        fillResultInternal, executeContractAsDebug.checked);
 | 
			
		||||
    const iHtml = "/SCIDE/SCManager?action=executeContract&contractID="
 | 
			
		||||
        + global.currentContract.name + "&operation="
 | 
			
		||||
        + funNode.functionName + "&arg=" + argInput[0].value
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user