mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-07-28 16:18:20 +08:00
Compare commits
2 Commits
a428e4d3d7
...
d4c365c0c7
Author | SHA1 | Date | |
---|---|---|---|
|
d4c365c0c7 | ||
|
d2f39a9327 |
@ -6,7 +6,6 @@ layout: default
|
|||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 50px;
|
|
||||||
}
|
}
|
||||||
.selectable {
|
.selectable {
|
||||||
-webkit-user-select: all;
|
-webkit-user-select: all;
|
||||||
@ -35,7 +34,7 @@ layout: default
|
|||||||
userPrompt.innerHTML = `请复制代码 <span class="selectable" id="userCode">${userCode}</span> <br>并前往 <a href="${verificationUri}">${verificationUri}</a>,输入代码允许访问并登录微软账户。`;
|
userPrompt.innerHTML = `请复制代码 <span class="selectable" id="userCode">${userCode}</span> <br>并前往 <a href="${verificationUri}">${verificationUri}</a>,输入代码允许访问并登录微软账户。`;
|
||||||
qrcodeContainer.appendChild(userPrompt);
|
qrcodeContainer.appendChild(userPrompt);
|
||||||
} else {
|
} else {
|
||||||
const currentUrl = window.location.href + '?login=1';
|
const currentUrl = window.location.href + '&login=1';
|
||||||
console.log("currentUrl: ", currentUrl);
|
console.log("currentUrl: ", currentUrl);
|
||||||
const canvas = document.createElement('canvas');
|
const canvas = document.createElement('canvas');
|
||||||
QRCode.toCanvas(canvas, currentUrl, function (error) {
|
QRCode.toCanvas(canvas, currentUrl, function (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user