优化了一些问题

This commit is contained in:
kate522 committed 2026-08-29 16:15:06 +08:00
1 parent e54228d509
commit 41da33bb13
38 files changed
+7 -1138

No files matched your search

-20
View File
@@ -181,23 +181,6 @@ function miniupload() {
}
});
//人机验证
if (formData.get('captcha_mode') && is_captcha(formData.get('captcha_mode'))) {
tbquire(['captcha'], function () {
CaptchaOpen(_this, formData.get('captcha_mode'));
});
return !1;
}
if (window.captcha) {
if (window.captcha._this) {
delete window.captcha._this;
}
formData.append('captcha', JSON.stringify(window.captcha));
window.captcha = {}; //只能使用一次
}
/**
for (var [a, b] of formData.entries()) {
console.log(a, b);
@@ -250,9 +233,6 @@ function miniupload() {
form.find('.progress .progress-bar').css('width', percent + '%');
}),
success: function (n) {
if (n.error) {
_win.slidercaptcha = false;
}
var ys = n.ys ? n.ys : n.error ? 'danger' : '';
notyf(n.msg || aksrt__('operation_success'), ys, '', notyf_id);
miniuploaded(n.no_preview_reset);