更改: oauth2授权页面增加错误提示

This commit is contained in:
yystopf 2022-07-28 18:14:00 +08:00
parent 27fae8d27b
commit 902c66d490
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<%if @error.present?%>
var alertDiv = $('<div class="alert alert-danger"><%= @error[:msg]%></div>')
$("#container").prepend(alertDiv)
setTimeout(function() {
$('.alert').remove();
}, 3000);
<%end%>