Skip to content

Commit 186c376

Browse files
committed
修复首页json中布尔值true显示为false的问题
1 parent 1406bd8 commit 186c376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

danmu_api/configs/envs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Envs {
3838
}
3939
break;
4040
case 'boolean':
41-
parsedValue = value === 'true' || value === '1';
41+
parsedValue = value === true || value === 'true'|| value === 1 || value === '1';
4242
break;
4343
case 'string':
4444
default:

0 commit comments

Comments
 (0)