Browse Source

增加打印

tags/v1.22.4.1^2
wangjr 3 years ago
parent
commit
8dbb98e29c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      templates/user/dashboard/dashboard.tmpl

+ 3
- 2
templates/user/dashboard/dashboard.tmpl View File

@@ -44,8 +44,9 @@
let URL = AppSubUrl + '/api/v1/repos/search?sort=updated&order=desc&uid=true&q=&page=1&limit=10&mode= ';
$.getJSON(URL, (result, _textStatus, request) => {
const count = request.getResponseHeader('X-Total-Count');
if (count != 0){
const counts_pro = request.getResponseHeader('X-Total-Count');
console.log("count:",counts_pro)
if (counts_pro != 0){
document.getElementById("default_page").style.display = "none";
document.getElementById("activity_cont").style.display = "none"
}


Loading…
Cancel
Save