@zgfe/modules-settings 1.2.4-alpha.0 → 1.2.4-alpha.2
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.
|
@@ -125,9 +125,8 @@ var AppMember = function AppMember() {
|
|
|
125
125
|
request(apis.app.queryAppList, {
|
|
126
126
|
method: 'get'
|
|
127
127
|
}).then(function (res) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
setCompanyAppList((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.appList) || []);
|
|
128
|
+
console.log(222, res, res === null || res === void 0 ? void 0 : res.data.appList);
|
|
129
|
+
setCompanyAppList((res === null || res === void 0 ? void 0 : res.data.appList) || []);
|
|
131
130
|
});
|
|
132
131
|
// 请求左侧菜单
|
|
133
132
|
request(apis.app.queryLeftMenus, {
|
|
@@ -92,6 +92,9 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
92
92
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
93
93
|
companyAppList = _useState24[0],
|
|
94
94
|
setCompanyAppList = _useState24[1];
|
|
95
|
+
useEffect(function () {
|
|
96
|
+
console.log('companyAppList', companyAppList);
|
|
97
|
+
}, [companyAppList]);
|
|
95
98
|
var _useState25 = useState([]),
|
|
96
99
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
97
100
|
appList = _useState26[0],
|
|
@@ -180,8 +183,9 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
180
183
|
request(api.app.queryAppList, {
|
|
181
184
|
method: 'get'
|
|
182
185
|
}).then(function (res) {
|
|
183
|
-
console.log(111, res);
|
|
186
|
+
console.log(111, res, res.data.appList);
|
|
184
187
|
setCompanyAppList(res && res.data.appList || []);
|
|
188
|
+
console.log(111333, res && res.data.appList);
|
|
185
189
|
if (settingCurrentUser && authConfig && authConfig.dataAuth) {
|
|
186
190
|
var appIds = authConfig.dataAuth.map(function (item) {
|
|
187
191
|
return item.appId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.4-alpha.
|
|
3
|
+
"version": "1.2.4-alpha.2",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "64597a6367e12586630eab956ab5ee39961a1f57",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|