修改新增加文件数量的查询功能
This commit is contained in:
@ -7,11 +7,11 @@ web_bp = Blueprint('web', __name__)
|
||||
|
||||
@web_bp.route('/')
|
||||
def index():
|
||||
"""访问根路径时,返回 dist/index.html"""
|
||||
"""访问根路径时,返回 web_dist/index.html"""
|
||||
try:
|
||||
return send_from_directory(get_static_path(), 'index.html')
|
||||
except Exception as e:
|
||||
return f"前端资源未找到,请确认 dist 文件夹是否存在。错误信息: {e}", 404
|
||||
return f"前端资源未找到,请确认 web_dist 文件夹是否存在。错误信息: {e}", 404
|
||||
|
||||
@web_bp.route('/<path:path>')
|
||||
def static_files(path):
|
||||
|
||||
Reference in New Issue
Block a user