@zgfe/modules-settings 1.2.3 → 1.2.4-alpha.1
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,8 +125,8 @@ var AppMember = function AppMember() {
|
|
|
125
125
|
request(apis.app.queryAppList, {
|
|
126
126
|
method: 'get'
|
|
127
127
|
}).then(function (res) {
|
|
128
|
-
|
|
129
|
-
setCompanyAppList((res === null || res === void 0 ? void 0 :
|
|
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) || []);
|
|
130
130
|
});
|
|
131
131
|
// 请求左侧菜单
|
|
132
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,6 +183,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
180
183
|
request(api.app.queryAppList, {
|
|
181
184
|
method: 'get'
|
|
182
185
|
}).then(function (res) {
|
|
186
|
+
console.log(111, res, res.data.appList);
|
|
183
187
|
setCompanyAppList(res && res.data.appList || []);
|
|
184
188
|
if (settingCurrentUser && authConfig && authConfig.dataAuth) {
|
|
185
189
|
var appIds = authConfig.dataAuth.map(function (item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4-alpha.1",
|
|
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": "840a8dce716d38dcfe446c9edff18a734b322c81",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|