UNPKG

fork-reap-design

Version:

A high quality UI components Library with Vue.js

15 lines (13 loc) 356 B
export function isEqualItem(item, target) { const keys = ['Id', 'OrgId']; for (const key of keys) { if (item[key] !== target[key]) { return false; } } return true; } export const generateUrl = (baseUrl, params) => `${baseUrl}?${Object.keys(params) .filter(key => params[key]) .map(key => `${key}=${params[key]}`) .join('&')}`;