Skip to content

Commit 204ee81

Browse files
committed
fix(mail): fix tmpl js error
1 parent e443ffe commit 204ee81

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/tsw/util/auto-report/src/mail.tmpl.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@
9898
</tr>
9999
</thead>
100100
<tbody>
101-
<%for(i = 0; i < data.total_arr.length; i++){%>
102-
item = data.total_arr[i++];
101+
<%for(i = 0; i < data.total_arr.length; i++){
102+
item = data.total_arr[i++];
103+
%>
104+
103105
<tr class="<%=(i % 2 == 0 ? 'alt' : '')%>">
104106
<td class="dimension"><%=item.config.title%></td>
105107
<td class="dimension"><%=item.mod_act%></td>

bin/tsw/util/auto-report/tmpl.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ define(function(require, exports, module) {
182182
if (data.total_arr.length) {
183183
__p.push('<table>\n <thead>\n <tr>\n <th>项目名称</th>\n <th>mod_act</th>\n <th>报错次数</th>\n <th>负责人</th>\n </tr>\n </thead>\n <tbody>');
184184
for (i = 0; i < data.total_arr.length; i++) {
185-
__p.push(' item = data.total_arr[i++];\n <tr class="');
185+
item = data.total_arr[i++];
186+
__p.push(' \n <tr class="');
186187
_p((i % 2 == 0 ? 'alt' : ''));
187188
__p.push('">\n <td class="dimension">');
188189
_p(item.config.title);

0 commit comments

Comments
 (0)