feat: 会员中心 hgcloud 主题初始化 + drone 部署步骤
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/ - .gitignore 排除压缩包和临时解压目录 - drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
This commit is contained in:
11
clientarea/hgcloud/theme/index.js
Normal file
11
clientarea/hgcloud/theme/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const theme = document.documentElement.getAttribute("theme") || "default";
|
||||
const initTheme = () => {
|
||||
// 设置根元素的主题
|
||||
document.documentElement.setAttribute("theme", theme);
|
||||
// 加载对应的主题
|
||||
const link = document.createElement("link");
|
||||
link.rel = "stylesheet";
|
||||
link.href = `${url}theme/${theme}/index.css`;
|
||||
document.head.appendChild(link);
|
||||
};
|
||||
initTheme();
|
||||
Reference in New Issue
Block a user