systemDialog样式根据操作系统改变

This commit is contained in:
fofolee
2025-01-20 18:30:49 +08:00
parent d64f00a8b4
commit b71f47ec56
3 changed files with 656 additions and 516 deletions

View File

@@ -25,6 +25,9 @@ document.addEventListener("DOMContentLoaded", () => {
document.getElementById("content").textContent = config.content;
}
// 添加平台类名
document.body.classList.add(`platform-${config.platform}`);
// 根据类型设置不同的对话框内容
switch (config.type) {
case "message":