Update admin.js

This commit is contained in:
邹景立 2022-11-16 14:57:38 +08:00
parent 88e8b5d4a3
commit 3d9836d5d5

View File

@ -1087,6 +1087,11 @@ $(function () {
$.previewPhonePage(this.dataset.phoneView || this.href);
});
/*! 注册 data-event-submit 事件行为 */
onEvent('click', '[data-event-submit]', function () {
$(this.dataset.eventSubmit || this).submit();
});
/*! 表单编辑返回操作 */
onEvent('click', '[data-history-back]', function () {
$.msg.confirm(this.dataset.historyBack || '确定要返回吗?', function () {