diff --git a/app/run.py b/app/run.py index 9391da8..56db54e 100644 --- a/app/run.py +++ b/app/run.py @@ -19,6 +19,7 @@ import os config_path = os.environ.get("CONFIG_PATH", "./config/quark_config.json") app = Flask(__name__) +app.config["APP_VERSION"] = "0.2.1" app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d" app.json.ensure_ascii = False app.json.sort_keys = False @@ -94,7 +95,7 @@ def logout(): def index(): if not is_login(): return redirect(url_for("login")) - return render_template("index.html") + return render_template("index.html", version=app.config["APP_VERSION"]) # 获取配置数据 diff --git a/app/templates/index.html b/app/templates/index.html index e24e31d..28d8ba5 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -7,6 +7,21 @@
+ @Cp0204/quark_auto_save v{{ version }} +