mirror of https://github.com/jumpserver/jumpserver
perf: 优化关闭弹窗方式及数据库连接名称优化 (#9508)
parent
aa483a3c6d
commit
564a87304c
|
@ -27,7 +27,7 @@ class AppletApplication(BaseApplication):
|
||||||
self.host = self.asset.address
|
self.host = self.asset.address
|
||||||
self.port = self.asset.get_protocol_port(self.protocol)
|
self.port = self.asset.get_protocol_port(self.protocol)
|
||||||
self.db = self.asset.spec_info.db_name
|
self.db = self.asset.spec_info.db_name
|
||||||
self.name = '%s-%s' % (self.host, self.db)
|
self.name = '%s-%s-%s' % (self.host, self.db, int(time.time()))
|
||||||
self.pid = None
|
self.pid = None
|
||||||
self.app = None
|
self.app = None
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ class AppletApplication(BaseApplication):
|
||||||
raise ValueError('This protocol is not supported: %s' % self.protocol)
|
raise ValueError('This protocol is not supported: %s' % self.protocol)
|
||||||
commands = action()
|
commands = action()
|
||||||
# 关闭掉桌面许可弹框
|
# 关闭掉桌面许可弹框
|
||||||
commands.insert(0, {'type': 'key', 'commands': (c.ENTER,)})
|
commands.insert(0, {'type': 'key', 'commands': (c.ESC,)})
|
||||||
# 登录
|
# 登录
|
||||||
commands.extend([
|
commands.extend([
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,4 +4,5 @@ LEFT = '{LEFT}'
|
||||||
DOWN = '{DOWN}'
|
DOWN = '{DOWN}'
|
||||||
RIGHT = '{RIGHT}'
|
RIGHT = '{RIGHT}'
|
||||||
TAB = '{VK_TAB}'
|
TAB = '{VK_TAB}'
|
||||||
|
ESC = '{ESC}'
|
||||||
ENTER = '{VK_RETURN}'
|
ENTER = '{VK_RETURN}'
|
||||||
|
|
Loading…
Reference in New Issue