diff --git a/static/public/dnfs.html b/static/public/dnfs.html index 07484d6..085acca 100644 --- a/static/public/dnfs.html +++ b/static/public/dnfs.html @@ -10,6 +10,10 @@
+
diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index daced9a..40c2b06 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -976,6 +976,14 @@ function renderUserPanel() { userpanel.appendChild(fold); if (!userpanel_expand || !current_user.login) return; + let back_to_index = document.createElement("div"); + back_to_index.className = "tag"; + back_to_index.textContent = "回到主页"; + back_to_index.addEventListener("click", () => { + window.location.href = "/"; + }) + userpanel.appendChild(back_to_index); + let name_tag = document.createElement("div"); name_tag.className = "tag no-hover"; name_tag.textContent = current_user.user;