diff --git a/Bootstrap.Admin/wwwroot/js/login.js b/Bootstrap.Admin/wwwroot/js/login.js index f2581b3f..aa1b05ad 100644 --- a/Bootstrap.Admin/wwwroot/js/login.js +++ b/Bootstrap.Admin/wwwroot/js/login.js @@ -96,7 +96,8 @@ width: $.capWidth(), height: $.capHeight(), localImages: function () { - return '../../lib/captcha/images/Pic' + Math.round(Math.random() * 4) + '.jpg'; + var base = $('#pathBase').attr('href'); + return base + 'lib/captcha/images/Pic' + Math.round(Math.random() * 4) + '.jpg'; }, setSrc: function () { return $imgUrl.val() + 'Pic' + Math.round(Math.random() * 136) + '.jpg';