fix: add viewport meta, RBAC permission wildcard fix in build.sh

This commit is contained in:
yumoqing 2026-08-12 12:49:49 +08:00
parent 8006fca0c5
commit 713f02f488
2 changed files with 12 additions and 1 deletions

View File

@ -178,6 +178,17 @@ if [ -f "${PKGDIR}/bricks/build.sh" ]; then
fi
green " OK"
# ============================================================
# 7b: 修复 RBAC 权限通配符 (bricks等静态资源目录需 /** 匹配子路径)
# ============================================================
blue "[7b/10] RBAC 权限通配符修复..."
mysql -u test -ptest123 pccs -e "
UPDATE permission SET path = CONCAT(path, '**')
WHERE path IN ('/pcpool/', '/pcc/', '/storage_mgr/', '/image_mgr/', '/pccs/', '/appbase/', '/imgs/', '/bricks/')
AND path NOT LIKE '%**';
" 2>/dev/null
green " OK"
# ============================================================
# 8: 种子数据
# ============================================================

View File

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="zh-CN" data-theme="light">
<head><meta charset="UTF-8"><title>PCCS 算力中心集群系统</title>
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0"><title>PCCS 算力中心集群系统</title>
<style>
:root,[data-theme="light"]{--bg:#f8fafc;--card-bg:#fff;--text:#1e293b;--text2:#64748b;--text3:#94a3b8;--border:#e2e8f0;--header-bg:#fff;--sidebar-bg:#0f172a;--sidebar-text:#94a3b8;--sidebar-hover:#1e293b;--sidebar-active:#e2e8f0;--primary:#2563eb;--primary-light:#dbeafe}
[data-theme="dark"]{--bg:#0f172a;--card-bg:#1e293b;--text:#e2e8f0;--text2:#94a3b8;--text3:#64748b;--border:#334155;--header-bg:#1e293b;--sidebar-bg:#020617;--sidebar-text:#64748b;--sidebar-hover:#1e293b;--sidebar-active:#e2e8f0;--primary:#3b82f6;--primary-light:#1e3a5f}