From dd1c80d32d23d66d114763b45ac42f88bc078bf8 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Tue, 2 Apr 2024 04:34:00 +0800 Subject: [PATCH] =?UTF-8?q?WebUI=20=E5=A2=9E=E5=8A=A0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A1=B6=E7=AB=AF=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 2 +- app/templates/index.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/run.py b/app/run.py index d387174..906fe2b 100644 --- a/app/run.py +++ b/app/run.py @@ -25,7 +25,7 @@ script_path = os.environ.get("SCRIPT_PATH", "./quark_auto_save.py") config_path = os.environ.get("CONFIG_PATH", "./config/quark_config.json") app = Flask(__name__) -app.config["APP_VERSION"] = "0.2.6" +app.config["APP_VERSION"] = "0.2.6.1" app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d" app.json.ensure_ascii = False app.json.sort_keys = False diff --git a/app/templates/index.html b/app/templates/index.html index fc34bf5..386bd5f 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -198,6 +198,7 @@
运行 + 回顶 退出
@@ -360,6 +361,12 @@ if (parentDir == "") parentDir = "/" return parentDir; + }, + scrollToTop() { + window.scrollTo({ + top: 0, + behavior: "smooth" + }); } } });