diff --git a/app/run.py b/app/run.py index b962236..abe6ed3 100644 --- a/app/run.py +++ b/app/run.py @@ -1200,6 +1200,10 @@ def get_share_detail(): if not is_sharing: return jsonify({"success": False, "data": {"error": stoken}}) share_detail = account.get_detail(pwd_id, stoken, pdir_fid, _fetch_share=1) + # 统一错误返回,避免前端崩溃 + if isinstance(share_detail, dict) and share_detail.get("error"): + return jsonify({"success": False, "data": {"error": share_detail.get("error")}}) + share_detail["paths"] = paths share_detail["stoken"] = stoken diff --git a/app/templates/index.html b/app/templates/index.html index e9f145b..98acf0f 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1032,7 +1032,7 @@ -