部分代码优化,接口依赖包升级

This commit is contained in:
ktianc 2024-03-06 19:05:49 +08:00
parent 953cdda006
commit 9bb0d17fb8
5 changed files with 4 additions and 5 deletions

View File

@ -113,7 +113,7 @@ service.interceptors.response.use(
case 401:
// 强制要求重新登录因账号已冻结账号已过期手机号码错误刷新token无效等问题导致
authStore.logout()
message = '认证已过期,请重新登录'
message = '认证已失效,请重新登录'
break
case 403:
// 强制要求重新登录,因无系统权限,而进入到系统访问等问题导致

View File

@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer
"""
系统版本
"""
VERSION = "3.7.1"
VERSION = "3.7.2"
"""安全警告: 不要在生产中打开调试运行!"""
DEBUG = False

View File

@ -246,7 +246,7 @@ async def put_menus(
@app.get("/menus/{data_id}", summary="获取菜单信息")
async def put_menus(
async def get_menus(
data_id: int,
auth: Auth = Depends(FullAdminAuth(permissions=["auth.menu.view", "auth.menu.update"]))
):

Binary file not shown.

View File

@ -8,8 +8,7 @@ class SuccessResponse(Response):
"""
成功响应
"""
def __init__(self, data=None, msg="success", code=http.HTTP_SUCCESS, status=http_status.HTTP_200_OK
, **kwargs):
def __init__(self, data=None, msg="success", code=http.HTTP_SUCCESS, status=http_status.HTTP_200_OK, **kwargs):
self.data = {
"code": code,
"message": msg,