@@ -83,6 +83,7 @@ $(document).ready(function() {
},
refreshTreeTable: function(result) {
ProjectTree.loadDatas(result);
+ if (ProjectTree.nodes.length > 0 && $('#no-project').length > 0) window.location.reload();
Utils.reloadTable();
refreshRow: function(result) {
@@ -14,7 +14,7 @@
<div class="sjs-height-0" style="background-color: #fff">
<div class="c-body">
<% if (!projectList || projectList.length === 0) { %>
- <div class="jumbotron">
+ <div class="jumbotron" id="no-project">
<h3 class="display-6">还没有项目数据</h3>
</div>
<% } else { %>