fix(#IVQOR): 行为验证码本地加载路径不能使用所有情况

#Issue
https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVQOR
#Comment
close #IVQOR
This commit is contained in:
Argo Zhang 2019-04-23 13:54:00 +08:00
parent 2d341f0487
commit 2740fb7062
1 changed files with 2 additions and 1 deletions

View File

@ -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';