little-wheels 1.2.7 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare class AuthLogin {
71
71
  */
72
72
  getUserBranchGroupByGroupId(params: {
73
73
  groupId: string;
74
- }): Promise<{}>;
74
+ }): Promise<UserGroupItem>;
75
75
  /**
76
76
  * 刷新Token
77
77
  * @async
package/dist/index.es.js CHANGED
@@ -1999,14 +1999,16 @@ class Jn {
1999
1999
  return n;
2000
2000
  const a = async (s) => {
2001
2001
  const y = s.attributes.type[0] || 0;
2002
- if (Number(y) <= 3)
2002
+ if (Number(y) === 3)
2003
2003
  return s;
2004
+ if (Number(y) === 1)
2005
+ return n;
2004
2006
  if (s.parentId) {
2005
2007
  const P = await ie(this).getGroupDetail({ id: s.parentId });
2006
2008
  if (P)
2007
2009
  return a(P);
2008
2010
  }
2009
- return {};
2011
+ return n;
2010
2012
  };
2011
2013
  return a(n);
2012
2014
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "little-wheels",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "这是一个基于react自用轮子库",
5
5
  "repository": {
6
6
  "type": "git",