dlt-for-react 2.1.1 → 2.1.3

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/README.md CHANGED
@@ -8,7 +8,7 @@ npm publish
8
8
 
9
9
  ## 前端 dlt-for-react 依赖包版本更新记录
10
10
 
11
- ##### 当前最新版本:2.1.1
11
+ ##### 当前最新版本:2.1.3
12
12
 
13
13
  ##### 安装依赖
14
14
 
@@ -279,7 +279,7 @@ var getExpiresIn = exports.getExpiresIn = function getExpiresIn() {
279
279
  var expiresIn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1800;
280
280
 
281
281
  //用户最后一次操作时间
282
- var userLastOperationTime = sessionStorage.getItem('user_last_operation_time');
282
+ var userLastOperationTime = _index.session.get('user_last_operation_time');
283
283
  if (!userLastOperationTime) return true;
284
284
  var nowDate = new Date();
285
285
  var differDate = getDifferDate(userLastOperationTime, nowDate);
@@ -395,7 +395,6 @@ var tryLoginUserInfo = exports.tryLoginUserInfo = function tryLoginUserInfo(allM
395
395
  var tryAllConfigInfo = exports.tryAllConfigInfo = function tryAllConfigInfo(func) {
396
396
  //第一步,清空缓存
397
397
  sessionStorage.removeItem('nhParams');
398
- //console.info("tryAllConfigInfo执行1");
399
398
  var tokenId = sessionStorage.getItem('access_token');
400
399
 
401
400
  fetch(window.baseUrl + '/proData/queryAllConfig', {
@@ -467,7 +467,6 @@ var filterChildrenMenus = exports.filterChildrenMenus = function filterChildrenM
467
467
  var filterAuthMenus = exports.filterAuthMenus = function filterAuthMenus(menus, auths, routes) {
468
468
  var filterMenus = [];
469
469
  menus.map(function (item) {
470
- item.key = (0, _NHCore.createUuid)();
471
470
  var authority = item.authority;
472
471
  if (item.url && routes && routes.length > 0) {
473
472
  authority = findAuth(routes, item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dlt-for-react",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "dlt for react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {