修复帮助皮肤中设置模糊为0时不生效的问题

This commit is contained in:
yoimiya-kokomi 2022-09-27 11:05:32 +08:00
parent 3815884473
commit 35e7c17b85
2 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,7 @@ let Theme = {
.help-table .td,.help-table .th{width:${100 / colCount}%} .help-table .td,.help-table .th{width:${100 / colCount}%}
`] `]
let css = function (sel, css, key, def, fn) { let css = function (sel, css, key, def, fn) {
let val = themeStyle[key] || diyStyle[key] || sysStyle[key] || def let val = Data.def(themeStyle[key], diyStyle[key], sysStyle[key], def)
if (fn) { if (fn) {
val = fn(val) val = fn(val)
} }

View File

@ -93,6 +93,8 @@ class App {
// v2执行方法 // v2执行方法
v2App (e) { v2App (e) {
let cfg = this.cfg || {}
let event = cfg.event
let apps = this.apps let apps = this.apps
return async function (e) { return async function (e) {
let msg = e.original_msg || e.msg || '' let msg = e.original_msg || e.msg || ''
@ -114,6 +116,11 @@ class App {
return true return true
} }
} }
} else if (event === 'poke' && msg === '#poke#') {
let ret = await app.fn(e, {})
if (ret === true) {
return true
}
} }
} }
return false return false