当前位置:网站首页>[ruoyi] set theme style
[ruoyi] set theme style
2022-07-06 02:46:00 【sayyy】
Preface
- ruoyi 4.6.0
Ruoyi (ruoyi) The theme style of
In ruoyi (ruoyi) in , You can set skin and theme.
sys.index.skinName
: Main frame - Default skin style name , It can be taken as : Blue skin-blue、 green skin-green、 violet skin-purple、 Red skin-red、 yellow skin-yellowsys.index.sideTheme
: Main frame - Sidebar theme , It can be taken as : Dark theme theme-dark, Light color theme theme-light, Dark blue theme theme-blue
Default theme style
Default theme style , And skin-blue
Agreement .
Solve the problem of theme style flashing after setting theme style
stay templates/index.html Medium body Add 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')}" >
...
another , find JavaScript
// Local theme first , System configuration is not set
if($.common.isNotEmpty(skin)){
$("body").addClass(skin.split('|')[0]);
$("body").addClass(skin.split('|')[1]);
} else {
$("body").addClass([[${
sideTheme}]]);
$("body").addClass([[${
skinName}]]);
}
It is amended as follows :
// Local theme first , System configuration is not set
if($.common.isNotEmpty(skin)){
$("body").removeClass([[${
sideTheme}]]);
$("body").removeClass([[${
skinName}]]);
$("body").addClass(skin.split('|')[0]);
$("body").addClass(skin.split('|')[1]);
}
Reference resources
http://doc.ruoyi.vip/ruoyi/document/qdsc.html# Parameters use
边栏推荐
- Déduisez la question d'aujourd'hui - 729. Mon emploi du temps I
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 20
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 17
- I changed the driver to 5.1.35, but it is still the same error. I can succeed even now, but I will report this every time I do an SQL operation
- After changing the GCC version, make[1] appears in the compilation: cc: command not found
- 张丽俊:穿透不确定性要靠四个“不变”
- Shell脚本更新存储过程到数据库
- Thinking on Architecture Design (under continuous updating)
- Apt installation ZABBIX
- Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
猜你喜欢
[untitled] a query SQL execution process in the database
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
淘宝焦点图布局实战
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
Building the prototype of library functions -- refer to the manual of wildfire
力扣今日題-729. 我的日程安排錶 I
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
Sword finger offer 29 Print matrix clockwise
Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)
随机推荐
DDoS attacks - are we really at war?
#PAT#day10
主数据管理理论与实践
CSP date calculation
Universal crud interface
How to improve the enthusiasm of consumers when the member points marketing system is operated?
After changing the GCC version, make[1] appears in the compilation: cc: command not found
Redis installation
原型图设计
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
Taobao focus map layout practice
Apt installation ZABBIX
RobotFramework入门(一)简要介绍及使用
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
[Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
数据准备工作
力扣今日題-729. 我的日程安排錶 I
Sword finger offer 30 Stack containing min function
Master data management theory and Practice
4. File modification