Skip to content

Commit

Permalink
perf(script): 添加题库停用状态的开启提示
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Dec 19, 2023
1 parent e75786c commit 8e6aaed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/scripts/src/projects/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,15 @@ export const CommonProject = Project.create({
const body = el('tbody');
body.append(el('td', item.name));
body.append(
el('td', success ? '连接成功🟢' : isDisabled ? '已停用⚪' : error ? '连接失败🔴' : '连接超时🟡')
el('td', [
$creator.tooltip(
el(
'span',
{ title: isDisabled ? '题目已经被停用,请在上方题库配置中点击开启。' : '' },
success ? '连接成功🟢' : isDisabled ? '已停用⚪' : error ? '连接失败🔴' : '连接超时🟡'
)
)
])
);
body.append(el('td', `延迟 : ${success ? Date.now() - t : '---'}/ms`));
table.append(body);
Expand Down

0 comments on commit 8e6aaed

Please sign in to comment.