完善开发文档与调整初始化项目架构

This commit is contained in:
wojiaoyishang
2025-01-28 17:47:41 +08:00
parent da5917344e
commit 41bda82c60
13 changed files with 316 additions and 9 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
<p align="center">
<a href="#">
<img src="https://img.shields.io/badge/pear%20admin%20flask-1.0.0-green" alt="Pear Admin Layui Version">
<img src="https://img.shields.io/badge/pear%20admin%20flask-2.0.0-green" alt="Pear Admin Layui Version">
</a>
<a href="#">
<img src="https://img.shields.io/badge/Python-3.8+-green.svg" alt="Python Version">
+18 -1
View File
@@ -110,4 +110,21 @@
.. code-block:: python
from applications.common.admin import admin_log
from applications.common.admin import admin_log
验证码生成路由修改
~~~~~~~~~~~~~~~~~~~~~~~~
为了优化代码,将验证码生成路由改为了 system.passport.captcha 。这主要会影响前端模板渲染。
例如:
.. code-block:: html
url_for('system.passport.get_captcha')
改为:
.. code-block:: python
url_for('system.passport.captcha')
+2
View File
@@ -40,6 +40,8 @@
* 更正登录之后重定向由于路由更改从而设置错误的问题
* 将 applications/common/admin_log.py 与 applications/common/admin.py 合并,仅留下 applications/common/admin.py
* 优化代码结构,新增函数 `normal_log` 减少代码复用
* 添加了新插件的事件
* 修改了验证码生成路由
已知问题以及解决方式
~~~~~~~~~~~~~~~~~~~~~~~