From edb18cdf951bbaadfa85585c53b5527a992664da Mon Sep 17 00:00:00 2001 From: kasuie Date: Wed, 24 Apr 2024 17:21:11 +0800 Subject: [PATCH] fix: js --- v3/js/style.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/v3/js/style.js b/v3/js/style.js index 4fbd1d4..9031378 100644 --- a/v3/js/style.js +++ b/v3/js/style.js @@ -2,7 +2,7 @@ * @Author: kasuie * @Date: 2024-04-24 15:35:59 * @LastEditors: kasuie - * @LastEditTime: 2024-04-24 17:16:03 + * @LastEditTime: 2024-04-24 17:20:17 * @Description: */ let footer = false; @@ -63,15 +63,13 @@ const renderFooter = (data) => { }) : null; aDom && (aDom.innerText = text); - if (!index) { - target.innerHTML = ImgDom - ? target.innerHTML + ImgDom + aDom - : target.innerHTML + aDom; - } else { - target.innerHTML = ImgDom - ? "|" + target.innerHTML + ImgDom + aDom - : "|" + target.innerHTML + aDom; + if (index) { + const split = onCreateElement("span", null); + split.innerText = "|"; + split && target.appendChild(split); } + ImgDom && target.appendChild(ImgDom); + aDom && target.appendChild(aDom); } } footer = true;