python-flask和Vue两种模式初模板

This commit is contained in:
dxc
2026-01-26 17:00:12 +08:00
parent ee9f4aed3e
commit 2f8a5c55b1
36 changed files with 943 additions and 126 deletions

View File

@ -1,6 +1,8 @@
# 文件路径: app/extensions.py
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from flask_migrate import Migrate
from flask_cors import CORS # 解决前后端跨域问题
# 初始化数据库和序列化工具
db = SQLAlchemy()
ma = Marshmallow()
migrate = Migrate()
cors = CORS()