logo和配置修改

This commit is contained in:
谢宇宁
2026-09-23 16:50:34 +07:00
parent bef9f8b4ed
commit 0db8087765
163 changed files with 393 additions and 20366 deletions
-30
View File
@@ -495,23 +495,6 @@
});
}
function requireLogin() {
if (window.CookieUtil && CookieUtil.isLoggedIn()) return true;
toast("请先登录后再提交反馈", "error");
var loginURL = "/login/return/feedback/";
if (typeof window.openLoginDialog === "function") {
var opened = window.openLoginDialog();
if (opened && typeof opened.then === "function") {
opened.catch(function () {
window.location.href = loginURL;
});
}
} else {
window.location.href = loginURL;
}
return false;
}
function uploadAllImages() {
if (!selectedFiles.length) return Promise.resolve([]);
if (!window.AuthAPI || typeof AuthAPI.uploadImage !== "function") {
@@ -548,7 +531,6 @@
return;
}
if (submitBtn && submitBtn.classList.contains("is-loading")) return;
if (!requireLogin()) return;
var activeTypeChip = document.querySelector("[data-feedback-type-option].is-active");
var type = parseInt(
@@ -647,18 +629,6 @@
clearFiles();
})
.catch(function (err) {
if (err && err.code === 401) {
toast("请先登录后再提交反馈", "error");
if (typeof window.openLoginDialog === "function") {
var opened = window.openLoginDialog();
if (opened && typeof opened.then === "function") {
opened.catch(function () {
window.location.href = "/login/return/feedback/";
});
}
}
return;
}
toast((err && err.message) || "提交失败", "error");
})
.finally(function () {