From 4e04c0bf6290786688edf7529e65752e4d3f13eb Mon Sep 17 00:00:00 2001 From: ailoooong Date: Fri, 27 Dec 2024 16:45:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mindspore=E7=94=A8=E6=88=B7=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=8D=8F=E8=AE=AE=E9=93=BE=E6=8E=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/app/pagewriter/login/mindspore.html | 30 ++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/pkg/app/pagewriter/login/mindspore.html b/pkg/app/pagewriter/login/mindspore.html index 11bf3f0a7e..ed7949a2f9 100644 --- a/pkg/app/pagewriter/login/mindspore.html +++ b/pkg/app/pagewriter/login/mindspore.html @@ -157,12 +157,22 @@

- 我已阅读并同意《用户授权协议》和社区《隐私政策》《用户授权协议》《用户授权协议》和社区《隐私政策》 -

+

@@ -178,6 +188,7 @@ btn.addEventListener("click", function () { checkbox.checked ? "" : event.preventDefault(); }); + if (window.location.hash) { (function () { var inputs = document.getElementsByName("rd"); @@ -192,6 +203,15 @@ } })(); } + + // 判断是否是github + const { href } = window.location + if (href.includes('summary-github')) { + document.querySelector('.gitee-link').remove() + } else { + document.querySelector('.github-link').remove() + } +