fix(admin): 修复设置页面 CSP style-src 违规导致加载失败
Some checks failed
CI / Lint + Build (push) Has been cancelled
Some checks failed
CI / Lint + Build (push) Has been cancelled
- 移除 site-settings 模板中的内联 style 属性(display:none, width:100px) - 将内联样式迁移至 site-settings.css 的 CSS 类中 - site-settings-theme.js 用 className 替代 style.display 操作
This commit is contained in:
@ -95,8 +95,7 @@
|
||||
}
|
||||
|
||||
function showStatus(msg, type) {
|
||||
statusSection.style.display = 'block';
|
||||
statusSection.className = 'settings-section';
|
||||
statusSection.className = 'settings-section visible';
|
||||
if (type === 'success') {
|
||||
statusSection.classList.add('status-success');
|
||||
} else if (type === 'error') {
|
||||
|
||||
Reference in New Issue
Block a user