当前位置:网站首页>【若依(ruoyi)】设置主题样式
【若依(ruoyi)】设置主题样式
2022-07-06 02:41:00 【sayyy】
前言
- ruoyi 4.6.0
若依(ruoyi) 的主题样式
在若依(ruoyi)中,可以设置skin和theme。
sys.index.skinName:主框架页-默认皮肤样式名称,可取值为:蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellowsys.index.sideTheme:主框架页-侧边栏主题,可取值为:深黑主题theme-dark,浅色主题theme-light,深蓝主题theme-blue
默认主题样式
默认主题样式,与skin-blue一致。
解决设置主题样式后的主题样式闪动问题
在templates/index.html中的body中添加class:
...
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden" th:classappend="${@config.getKey('sys.index.skinName') + ' ' + @config.getKey('sys.index.sideTheme')}" >
...
另,找到JavaScript
// 本地主题优先,未设置取系统配置
if($.common.isNotEmpty(skin)){
$("body").addClass(skin.split('|')[0]);
$("body").addClass(skin.split('|')[1]);
} else {
$("body").addClass([[${
sideTheme}]]);
$("body").addClass([[${
skinName}]]);
}
修改为:
// 本地主题优先,未设置取系统配置
if($.common.isNotEmpty(skin)){
$("body").removeClass([[${
sideTheme}]]);
$("body").removeClass([[${
skinName}]]);
$("body").addClass(skin.split('|')[0]);
$("body").addClass(skin.split('|')[1]);
}
参考
http://doc.ruoyi.vip/ruoyi/document/qdsc.html#参数使用
边栏推荐
- A copy can also produce flowers
- ReferenceError: primordials is not defined错误解决
- Li Kou today's question -729 My schedule I
- Yyds dry inventory comparison of several database storage engines
- Briefly describe the implementation principle of redis cluster
- JS events (add, delete) and delegates
- PMP每日一练 | 考试不迷路-7.5
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
- C语言sizeof和strlen的区别
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9
猜你喜欢

Solution: attributeerror: 'STR' object has no attribute 'decode‘

淘宝焦点图布局实战

Easy to use js script

Referenceerror: primordials is not defined error resolution

Introduction to robotframework (III) Baidu search of webui automation

Sword finger offer 29 Print matrix clockwise
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22](/img/e0/21367eeaeca10c0a2f2aab3a4fa1fb.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22

Gifcam v7.0 minimalist GIF animation recording tool Chinese single file version

纯Qt版中国象棋:实现双人对战、人机对战及网络对战

How to accurately identify master data?
随机推荐
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
高数_向量代数_单位向量_向量与坐标轴的夹角
Ue4- how to make a simple TPS role (II) - realize the basic movement of the role
DDoS "fire drill" service urges companies to be prepared
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22
Solution: attributeerror: 'STR' object has no attribute 'decode‘
Déduisez la question d'aujourd'hui - 729. Mon emploi du temps I
HttpRunnerManager安装(三)-Linux下配置myql数据库&初始化数据
07 单件(Singleton)模式
淘宝焦点图布局实战
Redis installation
Qt发布exe软件及修改exe应用程序图标
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
550 permission denied occurs when FTP uploads files, which is not a user permission problem
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
How to check the lock information in gbase 8C database?
How to accurately identify master data?
【MySQL 15】Could not increase number of max_ open_ files to more than 10000 (request: 65535)
SSM assembly
What should we pay attention to when using the built-in tool to check the health status in gbase 8C database?