From 47ee9e62e07b3b467b61a7a0793e3db01947baeb Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 13 六月 2025 13:43:29 +0800 Subject: [PATCH] fix(iframe): 修正 iframe 请求路径 --- common/iframe.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/iframe.js b/common/iframe.js index 479c646..7fabd4e 100644 --- a/common/iframe.js +++ b/common/iframe.js @@ -11,7 +11,7 @@ newDiv.style.backgroundSize= '100% 100%' newDiv.style.cursor= 'pointer' var firstChild = document.body.firstChild; - const url = `https://dmx.jinmingyuan.com:8999/ly_app?userId=`+ userId + '&knowId=' + knowId + const url = `http://61.168.99.48:8055/ly_app/?userId=`+ userId + '&knowId=' + knowId var iframe = '' document.body.insertBefore(newDiv, firstChild); newDiv.addEventListener('click', ()=> { @@ -20,7 +20,7 @@ iframe = '' } else { iframe = document.createElement("iframe"); - iframe.src = url || window.location.origin + '/ly_app?userId=' + userId + '&knowId=' + knowId; + iframe.src = url || window.location.origin + '/ly_app/?userId=' + userId + '&knowId=' + knowId; iframe.style.width="430px" iframe.style.height="90%" iframe.style.position = 'fixed' @@ -30,7 +30,7 @@ iframe.style.border = '0' iframe.style.boxShadow = '0 0 10px #e4e4e4' iframe.style.borderRadius = '12px' - document.body.appendChild(iframe); + document.body.appendChild(iframe); } }) } -- Gitblit v1.9.1