lemo-crm/web/app/helpers/obj-query-params.js
2022-06-24 21:56:55 +08:00

13 lines
360 B
JavaScript

import EmberObject from '@ember/object';
import { helper } from '@ember/component/helper';
export function objQueryParams(params, hash) {
console.debug('Obj Query Params: ', params, hash);
return EmberObject.create({
isQueryParams: true,
values: hash.length > 0 ? hash : params[0]
});
}
export default helper(objQueryParams);