Skip to content

Commit 8ed6bc8

Browse files
committed
set datatables not sorted
1 parent 25466d4 commit 8ed6bc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/admin/templates/admin/visitor-list.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h1>
3535
<th>城市</th>
3636
<th>时间</th>
3737
<th>文章</th>
38+
<th>来源</th>
3839
</tr>
3940
</thead>
4041
<tbody>
@@ -45,6 +46,7 @@ <h1>
4546
<td>{{ visitor.city }}</td>
4647
<td>{{ visitor.visited_time }}</td>
4748
<td>{{ visitor.article }}</td>
49+
<td>{{ visitor.referer }}</td>
4850
</tr>
4951
{% endfor %}
5052
</tbody>
@@ -69,6 +71,7 @@ <h1>
6971
<script>
7072
$(function () {
7173
$("#visitorList").DataTable({
74+
"bSort": false
7275
'bStateSave': true, //记录所在页数
7376
'aLengthMenu': [[20, 40, 80, -1], [20, 40, 80, "All"]], //定义每页显示数据数量
7477
});

0 commit comments

Comments
 (0)