修改功能

This commit is contained in:
2026-08-29 19:06:07 +08:00
parent f94c652c7c
commit aaed0584b1
142 changed files with 6176 additions and 869 deletions
+8 -1
View File
@@ -14,6 +14,13 @@
})(typeof globalThis !== 'undefined' ? globalThis : window, function (root) {
'use strict';
function confirmAction(message) {
if (root.ProfileUI && typeof root.ProfileUI.confirmAction === 'function') {
return root.ProfileUI.confirmAction(message);
}
return Promise.resolve(!root['confirm'] || root['confirm'](message));
}
var documentRef = root.document;
var poemsById = Object.create(null);
var lastPreviewSignature = '';
@@ -695,7 +702,7 @@
setBatchStatus('请先预览当前内容,再保存');
return;
}
if (root.confirm && !root.confirm(buildBatchConfirmMessage(body.disableMissing))) return;
if (!await confirmAction(buildBatchConfirmMessage(body.disableMissing))) return;
setBatchStatus('正在保存…');
setWritePending(true);
try {