修复喵喵帮助设置theme不生效 (#204)

This commit is contained in:
zolay 2022-10-04 22:51:44 +08:00 committed by GitHub
parent 6ebc71d568
commit fa359cbda0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ let Theme = {
}
},
async getThemeData (diyStyle, sysStyle) {
let helpConfig = lodash.extend({}, diyStyle, sysStyle)
let helpConfig = lodash.extend({}, sysStyle, diyStyle)
let colCount = Math.min(5, Math.max(parseInt(helpConfig?.colCount) || 3, 2))
let colWidth = Math.min(500, Math.max(100, parseInt(helpConfig?.colWidth) || 265))
let width = Math.min(2500, Math.max(800, colCount * colWidth + 30))