当前位置:网站首页>[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
边栏推荐
- Single instance mode of encapsulating PDO with PHP in spare time
- PMP practice once a day | don't get lost in the exam -7.5
- Sword finger offer 30 Stack containing min function
- [Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
- 07 单件(Singleton)模式
- Introduction to robotframework (II) app startup of appui automation
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 15
- Gifcam v7.0 minimalist GIF animation recording tool Chinese single file version
- QT release exe software and modify exe application icon
- 大厂镜像库
猜你喜欢
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16](/img/c3/f3746b161012acc3751b2bd0b8f663.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16

深度解析链动2+1模式,颠覆传统卖货思维?
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6](/img/38/51797fcdb57159b48d0e0a72eeb580.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6

Microservice registration and discovery

Yyds dry inventory comparison of several database storage engines
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24](/img/2e/b1f348ee6abaef24b439944acf36d8.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24

Advanced technology management - what is the physical, mental and mental strength of managers

米家、涂鸦、Hilink、智汀等生态哪家强?5大主流智能品牌分析

Pure QT version of Chinese chess: realize two-man, man-machine and network games
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19](/img/7c/f728e88ca36524f92c56213370399b.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
随机推荐
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22
MySQL winter vacation self-study 2022 11 (6)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
Differences and usage scenarios between TCP and UDP
Pat grade a 1033 to fill or not to fill
淘宝焦点图布局实战
纯Qt版中国象棋:实现双人对战、人机对战及网络对战
【Unity3D】GUI控件
2345文件粉碎,文件强力删除工具无捆绑纯净提取版
RobotFramework入门(三)WebUI自动化之百度搜索
1. Dynamic parameters of function: *args, **kwargs
Maturity of master data management (MDM)
Microservice registration and discovery
我把驱动换成了5.1.35,但是还是一样的错误,我现在是能连成功,但是我每做一次sql操作都会报这个
RobotFramework入门(二)appUI自动化之app启动
inherited constructors
Briefly describe the implementation principle of redis cluster
PMP每日一练 | 考试不迷路-7.5
Redis delete policy
Solve 9 with C language × 9 Sudoku (personal test available) (thinking analysis)