From 8dbb98e29c3a295e74bbc73181428ff2459aa342 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 15 Apr 2022 18:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/user/dashboard/dashboard.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 0258c1461..4156b94a8 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -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" }