From d81bb8c893cf90cb6a6fc13544eb2fe55c60f616 Mon Sep 17 00:00:00 2001
From: wang duanduan <1779706607@qq.com>
Date: Fri, 10 Nov 2017 13:38:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=91=E9=A1=B5=E7=AB=AF?=
 =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E6=96=87=E6=A1=A3=E5=AF=BC=E8=88=AA=E6=97=A0?=
 =?UTF-8?q?=E6=95=88=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 public/blog/js/common.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/blog/js/common.js b/public/blog/js/common.js
index 713e5b3..e02f1e4 100644
--- a/public/blog/js/common.js
+++ b/public/blog/js/common.js
@@ -248,7 +248,7 @@ function genNav() {
 		var text = $(hs[i]).text(); 
 		var tagName = hs[i].tagName.toLowerCase();
 		// scrollTo在page.js中定义
-		titles += '<li class="nav-' + tagName + '"><a data-a="' + tagName + '-' + encodeURI(text)+'" onclick="scrollTo(this, \'' + tagName + '\', \'' + text + '\')">' + text + '</a></li>';
+		titles += '<li class="nav-' + tagName + '"><a data-a="' + tagName + '-' + encodeURI(text)+'" onclick="window.scrollTo(this, \'' + tagName + '\', \'' + text + '\')">' + text + '</a></li>';
 	}
 	titles += "</ul>";
 	$("#blogNavContent").html(titles);