Merge branch 'dev' into 8077-sumDefaulterFrontFix
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
fb18d5eace
|
@ -202,6 +202,7 @@ export function useArrayData(key, userOptions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toArray(str = []) {
|
function toArray(str = []) {
|
||||||
|
if (!str) return [];
|
||||||
if (Array.isArray(str)) return str;
|
if (Array.isArray(str)) return str;
|
||||||
if (typeof str === 'string') return str.split(',').map((item) => item.trim());
|
if (typeof str === 'string') return str.split(',').map((item) => item.trim());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue