gant-core 0.1.28 → 0.1.29
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/lib/cli/index.js +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -48724,7 +48724,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
48724
48724
|
};
|
|
48725
48725
|
|
|
48726
48726
|
var name = "gant-core";
|
|
48727
|
-
var version = "0.1.
|
|
48727
|
+
var version = "0.1.29";
|
|
48728
48728
|
var description = "";
|
|
48729
48729
|
var main = "lib/index.js";
|
|
48730
48730
|
var bin = {
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios__default from 'axios';
|
|
2
2
|
export * from 'axios';
|
|
3
|
-
import { forEach, groupBy, reduce, find, pick, get as get$1, uniqueId, omit, isEmpty, findIndex, cloneDeep, mapValues, uniqBy, toLower, isObject, mergeWith, has, join } from 'lodash-es';
|
|
3
|
+
import { forEach, groupBy, reduce, find, pick, get as get$1, uniqueId, omit, isEmpty, findIndex, isPlainObject, cloneDeep, mapValues, uniqBy, toLower, isObject, mergeWith, has, join } from 'lodash-es';
|
|
4
4
|
import mitt from 'mitt';
|
|
5
5
|
|
|
6
6
|
class InterceptorManager {
|
|
@@ -723,7 +723,7 @@ class UserStore {
|
|
|
723
723
|
const userInfo = userLoginName
|
|
724
724
|
? await getUserByUserLoginNameApi(userId)
|
|
725
725
|
: await getUserByIdApi(userId);
|
|
726
|
-
this.users.push(userInfo);
|
|
726
|
+
isPlainObject(userInfo) && this.users.push(userInfo);
|
|
727
727
|
return userInfo;
|
|
728
728
|
};
|
|
729
729
|
}
|