Skip to content

Commit 8a0d805

Browse files
committed
update
1 parent 27f07dc commit 8a0d805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/backend/captcha/go/partial_jsinit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var baseURL=typeof(IS_BACKEND)!='undefined'&&IS_BACKEND?BACKEND_URL:FRONTEND_URL;
33
new CaptchaGo('#captchago-{{$.Data.captchaID}}',{
44
api:baseURL+'/captchago',idSuffix:'-{{$.Data.captchaID}}',driver:'{{$.Data.driver}}',type:'{{$.Data.type}}',
5-
success:typeof(success)=='function'?success:function(){typeof(App)!='undefined'&&App.message({text:'{{`验证成功`|$.T}}',type:'success'});$(document).trigger('captcha.success');},
6-
error:typeof(error)=='function'?error:function(){typeof(App)!='undefined'&&App.message({text:'{{`验证失败,请重试`|$.T}}',type:'error'});$(document).trigger('captcha.error');}
5+
success:typeof(success)=='function'?success:function(){typeof(App)!='undefined'&&App.message({text:'{{`验证成功`|$.T}}',type:'success'});},
6+
error:typeof(error)=='function'?error:function(){typeof(App)!='undefined'&&App.message({text:'{{`验证失败,请重试`|$.T}}',type:'error'});}
77
});
88
}

0 commit comments

Comments
 (0)