当前位置:网站首页>[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
边栏推荐
- JS events (add, delete) and delegates
- Misc (eternal night), the preliminary competition of the innovation practice competition of the National College Students' information security competition
- 数据准备工作
- Redis delete policy
- Technology sharing | what if Undo is too big
- 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
- 继承的构造函数
- Large scale DDoS attacks take Myanmar offline
- 2020.02.11
- RobotFramework入门(一)简要介绍及使用
猜你喜欢
力扣今日題-729. 我的日程安排錶 I
Network Security Learning - Web vulnerabilities (Part 1)
Déduisez la question d'aujourd'hui - 729. Mon emploi du temps I
PMP practice once a day | don't get lost in the exam -7.5
GifCam v7.0 极简GIF动画录制工具中文单文件版
RobotFramework入门(二)appUI自动化之app启动
Li Kou today's question -729 My schedule I
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
2345 file shredding, powerful file deletion tool, unbound pure extract version
Advanced technology management - what is the physical, mental and mental strength of managers
随机推荐
Qt发布exe软件及修改exe应用程序图标
The difference between sizeof and strlen in C language
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
Elimination games
Data preparation
Blue Bridge Cup group B provincial preliminaries first question 2013 (Gauss Diary)
高数_向量代数_单位向量_向量与坐标轴的夹角
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
Day 50 - install vsftpd on ceontos6.8
How to accurately identify master data?
解决:AttributeError: ‘str‘ object has no attribute ‘decode‘
Microservice registration and discovery
Installation and use tutorial of cobaltstrike-4.4-k8 modified version
一个复制也能玩出花来
[Yu Yue education] basic reference materials of digital electronic technology of Xi'an University of Technology
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 19
2345 file shredding, powerful file deletion tool, unbound pure extract version
2.12 simulation
2022.02.13
Maturity of master data management (MDM)