权限分配

This commit is contained in:
sin
2019-03-11 13:44:04 +08:00
parent f02e4d26ef
commit 3cb4efd52e
5 changed files with 274 additions and 7 deletions

View File

@@ -30,6 +30,17 @@ function filterEmptyStr(params) {
}
}
export function arrayToStringParams(array) {
let res = '';
for (let i = 0; i < array.length; i++) {
res += array[i];
if (i < array.length - 1) {
res += ',';
}
}
return res;
}
export function stringify(params) {
return qs.stringify(filterEmptyStr(params));
}