Files
zjpb.net/templates/admin/apikey/create.html

15 lines
420 B
HTML
Raw Normal View History

{% extends 'admin/model/create.html' %}
{% block tail %}
{{ super() }}
<script>
document.addEventListener('DOMContentLoaded', function() {
// 创建成功后显示 API Key
{% if created_at and model and model.key %}
setTimeout(function() {
alert('API Key 已创建:\n\n{{ model.key }}\n\n请妥善保存此密钥只会显示一次');
}, 500);
{% endif %}
});
</script>
{% endblock %}