export function getDataByKey (data, key) { return key.split('.').reduce((pre: any, curr: any) => pre[curr], data) }