优化更新

This commit is contained in:
2026-09-13 17:33:13 +08:00
parent 8be23a62a3
commit 7f758cc6e9
97 changed files with 2333 additions and 3595 deletions
@@ -162,7 +162,7 @@ public/templates/
### 4.4.2 模板语法示例
```jinja2
```jinja
{# models.py.tpl #}
from django.db import models
from application.models import BaseModel
@@ -294,7 +294,6 @@ python manage.py runserver # 启动开发服务器
python manage.py makemigrations <app> # 生成迁移文件
python manage.py migrate # 执行迁移
python manage.py createsuperuser # 创建超级用户
python manage.py add_full_comments # 回填数据库字段注释
```
## 4.8 前端扩展
@@ -310,7 +309,7 @@ VALUES ('案例管理', '/example', 'tool/example/index', 'sys:example:page', 0,
### 4.8.2 组件扩展
前端使用 Vue3 + ElementPlus,可通过以下方式扩展:
前端使用 Vue3 + Ant Design Vue,可通过以下方式扩展:
1. **自定义组件**:在 `ui/src/components/` 目录下创建新组件
2. **组合式函数**:在 `ui/src/hooks/` 目录下创建自定义 hooks