格式化文件

This commit is contained in:
xaoyaoo 2024-02-28 19:34:22 +08:00
parent c8b11547eb
commit ad02472695

View File

@ -60,7 +60,7 @@ def start_falsk(merge_path="", msg_path="", micro_path="", media_path="", wx_pat
CORS(app, resources={r"/*": {"origins": "*"}}, supports_credentials=True) # 允许所有域名跨域
@app.after_request
@app.after_request # 请求后的处理 用于解决部分用户浏览器不支持flask以及vue的js文件返回问题
def changeHeader(response):
disposition = response.get_wsgi_headers('environ').get(
'Content-Disposition') or '' # 获取返回头文件名描述,如'inline; filename=index.562b9b5a.js'