diff --git a/src/jdbc.properties b/src/jdbc.properties index a2bb72ec91697819fe3891f07a700674c3b450a3..9314c2dd98fa7e820fb3e7de66119d5edfa76064 100644 --- a/src/jdbc.properties +++ b/src/jdbc.properties @@ -1,4 +1,4 @@ url=jdbc:mysql://localhost:3306/eportfolio_database?useUnicode=true&characterEncoding=utf-8&useSSL=false user=root -password=1234 +password=root driver=com.mysql.jdbc.Driver \ No newline at end of file diff --git a/web/js/Project/project_display.js b/web/js/Project/project_display.js index c529133276b5cd4bd5b1045310040c08e26de2ea..42f0f4880f27a052b9c9d37cd201913b1bb9c1cb 100644 --- a/web/js/Project/project_display.js +++ b/web/js/Project/project_display.js @@ -9,7 +9,7 @@ var userId = userIdStr.split("=")[1]; var url = window.location.href; var urlArray = url.split("id="); var otheruserId = 0; -if(urlArray.length > 0) otheruserId = url.split("id=")[1].split("#")[0]; +if(urlArray.length > 1) otheruserId = urlArray[1].split("#")[0]; //加载当前登录用户的project列表 function getMyProjectList(){