Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix-front into test
This commit is contained in:
commit
f7b1d7bd37
|
@ -205,6 +205,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