mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 00:08:31 +00:00
feat: 查看/下载录像被记录在活动日志中
This commit is contained in:
@@ -88,6 +88,7 @@ class AsyncApiMixin(InterceptMixin):
|
||||
if not self.is_need_async():
|
||||
return handler(*args, **kwargs)
|
||||
resp = self.do_async(handler, *args, **kwargs)
|
||||
self.async_callback(*args, **kwargs)
|
||||
return resp
|
||||
|
||||
def is_need_refresh(self):
|
||||
@@ -98,6 +99,9 @@ class AsyncApiMixin(InterceptMixin):
|
||||
def is_need_async(self):
|
||||
return False
|
||||
|
||||
def async_callback(self, params):
|
||||
pass
|
||||
|
||||
def do_async(self, handler, *args, **kwargs):
|
||||
data = self.get_cache_data()
|
||||
if not data:
|
||||
|
Reference in New Issue
Block a user