From 62f2b3757177cc9a87e017e6a8496a7ec5027386 Mon Sep 17 00:00:00 2001 From: thsrite Date: Tue, 9 Jul 2024 12:25:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20cpu=E5=8D=A0=E7=94=A8=E8=B7=B3=E8=BD=ACcd?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/cd2assistant/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/cd2assistant/__init__.py b/plugins/cd2assistant/__init__.py index ce697d5..c9419fe 100644 --- a/plugins/cd2assistant/__init__.py +++ b/plugins/cd2assistant/__init__.py @@ -1172,7 +1172,7 @@ class Cd2Assistant(_PluginBase): } # 全局配置 attrs = { - "refresh": 10 + "refresh": 10, "border": False } if not self._client: logger.warn(f"请求CloudDrive2服务失败") @@ -1214,9 +1214,11 @@ class Cd2Assistant(_PluginBase): 'component': 'div', 'content': [ { - 'component': 'span', + 'component': 'a', 'props': { - 'class': 'text-caption' + 'class': 'text-caption', + 'href': self._cd2_url, + 'target': '_blank', }, 'text': 'CPU占用' },