gant-core 0.1.8 → 0.1.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/lib/cli/index.js +0 -1
- package/lib/cli/index.js.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -688,8 +688,9 @@ class UserStore {
|
|
|
688
688
|
return this.userSetting[key];
|
|
689
689
|
}
|
|
690
690
|
const res = await getUserDataApi({ dataType, dataId: userId });
|
|
691
|
-
const bigData = JSON.parse(res.bigData);
|
|
691
|
+
const bigData = res.bigData ? JSON.parse(res.bigData) : undefined;
|
|
692
692
|
this.userSetting[key] = bigData;
|
|
693
|
+
return bigData;
|
|
693
694
|
};
|
|
694
695
|
updateUserSetting = async (dataType, data) => {
|
|
695
696
|
const key = this.getUserSettingType(dataType);
|
|
@@ -1233,7 +1234,7 @@ class CompanyData {
|
|
|
1233
1234
|
return this.data[key];
|
|
1234
1235
|
}
|
|
1235
1236
|
const res = await getCompanyDataApi({ dataType, dataId: companyVersion });
|
|
1236
|
-
const bigData = JSON.parse(res.bigData);
|
|
1237
|
+
const bigData = res.bigData ? JSON.parse(res.bigData) : undefined;
|
|
1237
1238
|
this.data[key] = bigData;
|
|
1238
1239
|
};
|
|
1239
1240
|
updateCompanyData = async (dataType, data) => {
|