From fac0f467dde11aa2b7276ed9a975e820a6671a1c Mon Sep 17 00:00:00 2001 From: lockiechen Date: Fri, 19 Jul 2024 14:59:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=EF=BC=9A=E4=BE=9D=E8=B5=96=E7=9A=84?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=9C=AA=E9=83=A8=E7=BD=B2=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E4=BC=98=E5=8C=96=20issue=20#10612?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-nav/src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/devops-nav/src/index.html b/src/frontend/devops-nav/src/index.html index 1e76fb61ef6..5aa235a7643 100755 --- a/src/frontend/devops-nav/src/index.html +++ b/src/frontend/devops-nav/src/index.html @@ -124,7 +124,7 @@ '; path=/' } - window.setProjectIdCookie = function (projectId) { + function setProjectIdCookie (projectId) { try { var domainMatch = location.hostname.match(/([^.]+\.)?([^\.]+\..+)/) var topDomain = From d04b0d2edfa4850b8a7a3483a822c4580752b681 Mon Sep 17 00:00:00 2001 From: lockiechen Date: Fri, 19 Jul 2024 15:33:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat=EF=BC=9A=E4=BE=9D=E8=B5=96=E7=9A=84?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=9C=AA=E9=83=A8=E7=BD=B2=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E4=BC=98=E5=8C=96=20issue=20#10612?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-nav/src/index.html | 29 +++++++++++--------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/src/frontend/devops-nav/src/index.html b/src/frontend/devops-nav/src/index.html index 5aa235a7643..5cb22a8d231 100755 --- a/src/frontend/devops-nav/src/index.html +++ b/src/frontend/devops-nav/src/index.html @@ -68,6 +68,15 @@ oHead.appendChild(oStyle) } + function loadJsAssets(isVendors) { + for (var i = 0; i < window.jsAssets.length; i++) { + var js = window.jsAssets[i] + if (isVendors ? js.indexOf('vendors') > -1 : js.indexOf('vendors') === -1) { + importScript(js, document.body) + } + } + } + function isValidPid(projectList, pid) { for (var i = 0; i < projectList.length; i++) { var proj = projectList[i] @@ -78,13 +87,6 @@ return false } - for (var i = 0; i < window.jsAssets.length; i++) { - var js = window.jsAssets[i] - if (js.indexOf('vendors') > -1) { - importScript(js, document.body) - } - } - function getCookie(cname) { try { var name = cname + '=' @@ -214,7 +216,9 @@ - +