修复与 types 文件表现不一致问题

This commit is contained in:
Jonson Petard
2020-09-14 21:11:00 +08:00
committed by GitHub
parent 6dfba91da8
commit 3383783f3c
+1
View File
@@ -1,5 +1,6 @@
module.exports = {
toBoolean(val) {
if (typeof val === 'boolean') return val
if (val === '') return val
return val === 'true' || val == '1'
},