整改提案UI

This commit is contained in:
2026-08-25 15:58:05 +08:00
parent e83f1317a4
commit b81c59dc86
19 changed files with 410 additions and 71 deletions
@@ -257,10 +257,14 @@
window.customStyleList = document.querySelectorAll('style[id^="style-"]')
})
$(document).on("pjax:complete", function () {
// PJAX 替换 #container 时可能已经移除旧样式节点,清理前需兼容节点脱离 DOM 的情况。
if (window.customStyleList) {
window.customStyleList.forEach((style) => {
style.parentNode.removeChild(style)
if (style.parentNode) {
style.parentNode.removeChild(style)
}
})
window.customStyleList = null
}
NProgress.done()
toggleShowBar()
@@ -287,7 +291,7 @@
})()
function pjaxReplace(url, data = null) {
$.pjax({
return $.pjax({
url: url,
container: "#container",
maxCacheLength: 0,