fix: helpBtns用模板字符串修复JS语法错误(单引号嵌套冲突)
This commit is contained in:
+1
-1
@@ -2507,7 +2507,7 @@ function renderStrategyTable(strategies) {
|
||||
};
|
||||
const th = (key, label, cls, title, colKey) => {
|
||||
const arrow = window._sortKey === key ? (window._sortDir === 'desc' ? '▼' : '▲') : '';
|
||||
const helpBtns = colKey ? '<span class="spec-th-help"><span class="spec-btn colinfo" title="看这列是干嘛的" onclick="event.stopPropagation();showColumnHelp('' + colKey + '')">ⓘ</span><span class="spec-btn ai" title="看策略模块spec(接口/约束)" onclick="event.stopPropagation();showModuleHelp('strategy','ai')">§</span></span>' : '';
|
||||
const helpBtns = colKey ? `<span class="spec-th-help"><span class="spec-btn colinfo" title="看这列是干嘛的" onclick="event.stopPropagation();showColumnHelp('${colKey}')">ⓘ</span><span class="spec-btn ai" title="看策略模块spec(接口/约束)" onclick="event.stopPropagation();showModuleHelp('strategy','ai')">§</span></span>` : '';
|
||||
return `<th class="${cls || 'text-right'} px-2 py-1.5 cursor-pointer hover:text-slate-300 select-none" onclick="sortBy('${key}')" title="${title || '点击排序'}">${label}${helpBtns}${arrow ? ' ' + arrow : ''}</th>`;
|
||||
};
|
||||
// 2026-08-13 温区自适应:按"适应温区"展开——每策略每温区一行
|
||||
|
||||
Reference in New Issue
Block a user