@indfnd/common 0.1.11 → 0.1.12

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.11...v0.1.12) (2024-03-29)
6
+
5
7
  ### [0.1.11](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.10...v0.1.11) (2024-03-29)
6
8
 
7
9
 
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
2
2
  import { isNil, formatDate as formatDate$1, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.10";
5
+ const version = "0.1.11";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -60268,12 +60268,21 @@ function addNodeToTree(tree, node) {
60268
60268
  let midPathNode = path2.shift();
60269
60269
  let midNode = _.find(subTree, { id: midPathNode == null ? void 0 : midPathNode.id });
60270
60270
  if (!midNode) {
60271
- midNode = {
60272
- pathStr: path2.length == 0 ? node.pathStr : "",
60273
- id: path2.length == 0 ? node.pathStr : midPathNode == null ? void 0 : midPathNode.id,
60274
- title: midPathNode == null ? void 0 : midPathNode.title,
60275
- children: []
60276
- };
60271
+ if (path2.length == 0) {
60272
+ midNode = {
60273
+ ...node,
60274
+ pathStr: node.pathStr,
60275
+ id: node.pathStr,
60276
+ title: midPathNode == null ? void 0 : midPathNode.title
60277
+ };
60278
+ } else {
60279
+ midNode = {
60280
+ pathStr: path2.length == 0 ? node.pathStr : "",
60281
+ id: path2.length == 0 ? node.pathStr : midPathNode == null ? void 0 : midPathNode.id,
60282
+ title: midPathNode == null ? void 0 : midPathNode.title,
60283
+ children: []
60284
+ };
60285
+ }
60277
60286
  subTree.push(midNode);
60278
60287
  }
60279
60288
  addNodeToTreeInner(midNode.children, path2);