Update login.html
Browse files- login.html +15 -15
login.html
CHANGED
@@ -54,19 +54,19 @@
|
|
54 |
</div>
|
55 |
{% endblock %}
|
56 |
|
57 |
-
{% block script %}
|
58 |
-
|
59 |
// 自动填入 token 并自动登录
|
60 |
-
window.onload = function () {
|
61 |
-
const token = "GeoAgent"; // 你可以改成自己的 token
|
62 |
-
const input = document.getElementById("password_input");
|
63 |
-
const button = document.getElementById("login_submit");
|
64 |
-
if (input && button) {
|
65 |
-
input.value = token;
|
66 |
-
setTimeout(() => {
|
67 |
-
button.click();
|
68 |
-
}, 500); // 等页面渲染后再点击
|
69 |
-
}
|
70 |
-
};
|
71 |
-
|
72 |
-
{% endblock %}
|
|
|
54 |
</div>
|
55 |
{% endblock %}
|
56 |
|
57 |
+
//{% block script %}
|
58 |
+
//<script>
|
59 |
// 自动填入 token 并自动登录
|
60 |
+
//window.onload = function () {
|
61 |
+
// const token = "GeoAgent"; // 你可以改成自己的 token
|
62 |
+
// const input = document.getElementById("password_input");
|
63 |
+
// const button = document.getElementById("login_submit");
|
64 |
+
// if (input && button) {
|
65 |
+
// input.value = token;
|
66 |
+
// setTimeout(() => {
|
67 |
+
// button.click();
|
68 |
+
// }, 500); // 等页面渲染后再点击
|
69 |
+
// }
|
70 |
+
//};
|
71 |
+
//</script>
|
72 |
+
//{% endblock %}
|