feat: 前后台静态资源路径冲突修复 + 用户管理功能
- 修改 admin/vite.config.js 添加 base: '/admin/' 解决静态资源路径问题 - 修复后台 index.html 资源引用从 /assets/ → /admin/assets/ - 更新优化器默认 API 地址为服务器地址 - 添加友链管理相关代码 - 修复多处分类管理页面
This commit is contained in:
@@ -11,4 +11,6 @@ class Link(Base):
|
||||
url = Column(String(500), nullable=False)
|
||||
description = Column(String(200), nullable=True)
|
||||
sort_order = Column(Integer, default=0)
|
||||
status = Column(String(20), default="approved") # approved=已通过, pending=待审核
|
||||
contact = Column(String(100), nullable=True) # 申请联系方式
|
||||
created_at = Column(DateTime, default=func.now())
|
||||
Reference in New Issue
Block a user