部分代码优化,接口依赖包升级
This commit is contained in:
parent
953cdda006
commit
9bb0d17fb8
@ -113,7 +113,7 @@ service.interceptors.response.use(
|
||||
case 401:
|
||||
// 强制要求重新登录,因账号已冻结,账号已过期,手机号码错误,刷新token无效等问题导致
|
||||
authStore.logout()
|
||||
message = '认证已过期,请重新登录'
|
||||
message = '认证已失效,请重新登录'
|
||||
break
|
||||
case 403:
|
||||
// 强制要求重新登录,因无系统权限,而进入到系统访问等问题导致
|
||||
|
@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer
|
||||
"""
|
||||
系统版本
|
||||
"""
|
||||
VERSION = "3.7.1"
|
||||
VERSION = "3.7.2"
|
||||
|
||||
"""安全警告: 不要在生产中打开调试运行!"""
|
||||
DEBUG = False
|
||||
|
@ -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.
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user