@indfnd/common 0.1.83 → 0.1.85

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,20 @@
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.85](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.84...v0.1.85) (2024-06-07)
6
+
7
+
8
+ ### Features
9
+
10
+ * 下拉选项样式优化 ([293ab3f](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/293ab3fa3afb16cc83875b5ba95244cbef999deb))
11
+
12
+ ### [0.1.84](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.83...v0.1.84) (2024-06-04)
13
+
14
+
15
+ ### Features
16
+
17
+ * layout title逻辑修改 ([f8d5b17](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f8d5b171a980517943dbafe87996927f1c7ad272))
18
+
5
19
  ### [0.1.83](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.82...v0.1.83) (2024-06-04)
6
20
 
7
21
 
@@ -1,8 +1,8 @@
1
1
  import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Drawer$1, Dropdown as Dropdown$1, Modal as Modal$1, Form, FormItem, Select as Select$1, Option, Row, Col, Menu, MenuItem, Badge, DropdownMenu, DropdownItem, Submenu, Tag, Header, Layout, Content, Spin, Poptip as Poptip$1, CheckboxGroup, Checkbox, RadioGroup, Radio, Card, Message, LoadingBar } from "view-design";
2
- import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
2
+ import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, 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.82";
5
+ const version = "0.1.84";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -57503,7 +57503,11 @@ const __vue2_script$B = {
57503
57503
  },
57504
57504
  computed: {
57505
57505
  title() {
57506
- return this.$route.meta.title;
57506
+ if (top == self) {
57507
+ return this.$route.meta.title;
57508
+ } else {
57509
+ return top.document.getElementsByClassName("pro-layout-tabs-wrapper")[0].getElementsByClassName("ivu-tag-primary")[0].textContent.replace(/\s/g, "");
57510
+ }
57507
57511
  }
57508
57512
  },
57509
57513
  methods: {
@@ -57625,7 +57629,11 @@ const __vue2_script$z = {
57625
57629
  },
57626
57630
  computed: {
57627
57631
  title() {
57628
- return this.$route.meta.title;
57632
+ if (top == self) {
57633
+ return this.$route.meta.title;
57634
+ } else {
57635
+ return top.document.getElementsByClassName("pro-layout-tabs-wrapper")[0].getElementsByClassName("ivu-tag-primary")[0].textContent.replace(/\s/g, "");
57636
+ }
57629
57637
  }
57630
57638
  }
57631
57639
  };
@@ -64525,9 +64533,11 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
64525
64533
  credentials: "include"
64526
64534
  }
64527
64535
  ).then((response) => response.json()).then((jsonData) => {
64528
- token = jsonData.token;
64529
- sessionStorage.setItem("lambo-token", token);
64530
- store2.dispatch("loginSuccess", token);
64536
+ if (jsonData.token) {
64537
+ token = jsonData.token;
64538
+ sessionStorage.setItem("lambo-token", token);
64539
+ store2.dispatch("loginSuccess", token);
64540
+ }
64531
64541
  });
64532
64542
  }
64533
64543
  if (!token && to.name !== LOGIN_PAGE_NAME) {
@@ -64881,9 +64891,24 @@ var app = {
64881
64891
  await removeMenuCollectApi({ appId, permissionId });
64882
64892
  },
64883
64893
  async getIndexInfo({ commit: commit2 }) {
64894
+ let indexDesc = getIndexDescCache();
64895
+ if (indexDesc) {
64896
+ commit2(
64897
+ "setIndexDesc",
64898
+ _.reduce(
64899
+ indexDesc,
64900
+ (sum, d) => {
64901
+ sum[d.indexCode] = d.indexDesc;
64902
+ return sum;
64903
+ },
64904
+ {}
64905
+ )
64906
+ );
64907
+ return indexDesc;
64908
+ }
64884
64909
  const { data } = await listIndexDescApi();
64885
64910
  setIndexDescCache(data);
64886
- const indexDesc = data;
64911
+ indexDesc = data;
64887
64912
  commit2(
64888
64913
  "setIndexDesc",
64889
64914
  _.reduce(