mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 07:33:10 +00:00
修复与 types 文件表现不一致问题
This commit is contained in:
parent
6dfba91da8
commit
3383783f3c
@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
toBoolean(val) {
|
||||
if (typeof val === 'boolean') return val
|
||||
if (val === '') return val
|
||||
return val === 'true' || val == '1'
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user