mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
bugfix
This commit is contained in:
1 parent
86e4c68391
commit
a146dc6812
4 files changed
+4
-5
No files matched your search
@@ -3,7 +3,7 @@ const validElement = (key, value, type, path) => {
|
||||
let msg = `${path.join('.')}.${key} require 'string' or 'Element' type, but got '${type}'`;
|
||||
|
||||
if (type === 'string') {
|
||||
if (type.trim() === '') {
|
||||
if (value.trim() === '') {
|
||||
handle = false;
|
||||
msg = `${path.join('.')}.${key} can not be empty'`;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user