@indfnd/common 1.0.77 → 1.0.78
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 +2 -0
- package/dist/ind-common.es.js +24 -2
- package/dist/ind-common.umd.cjs +23 -23
- package/package.json +1 -1
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
|
+
### [1.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.77...v1.0.78) (2024-12-31)
|
|
6
|
+
|
|
5
7
|
### [1.0.77](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.76...v1.0.77) (2024-12-23)
|
|
6
8
|
|
|
7
9
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.0.
|
|
5463
|
+
const version = "1.0.77";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -67703,12 +67703,34 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
67703
67703
|
window.apiErrorHandler = function(msg) {
|
|
67704
67704
|
Message.error({ content: msg, duration: 10, closable: true });
|
|
67705
67705
|
};
|
|
67706
|
+
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
67707
|
+
var query = window.location.search.substring(1);
|
|
67708
|
+
var vars = query.split("&");
|
|
67709
|
+
for (let i = 0; i < vars.length; i++) {
|
|
67710
|
+
let pair = vars[i].split("=");
|
|
67711
|
+
if (pair[0] == variable) {
|
|
67712
|
+
return pair.slice(1).join("=");
|
|
67713
|
+
}
|
|
67714
|
+
}
|
|
67715
|
+
let routeHash = window.location.hash.substring(2);
|
|
67716
|
+
if (routeHash.includes("?")) {
|
|
67717
|
+
query = routeHash.split("?")[1];
|
|
67718
|
+
}
|
|
67719
|
+
vars = query.split("&");
|
|
67720
|
+
for (let i = 0; i < vars.length; i++) {
|
|
67721
|
+
let pair = vars[i].split("=");
|
|
67722
|
+
if (pair[0] == variable) {
|
|
67723
|
+
return pair.slice(1).join("=");
|
|
67724
|
+
}
|
|
67725
|
+
}
|
|
67726
|
+
return false;
|
|
67727
|
+
};
|
|
67706
67728
|
router.beforeEach(async (to, from, next) => {
|
|
67707
67729
|
LoadingBar.start();
|
|
67708
67730
|
let token = getToken();
|
|
67709
67731
|
let search = location.search;
|
|
67710
67732
|
if (search) {
|
|
67711
|
-
let rlt =
|
|
67733
|
+
let rlt = getQueryVariable("token");
|
|
67712
67734
|
if (rlt && rlt.length > 1) {
|
|
67713
67735
|
if (token !== rlt[1]) {
|
|
67714
67736
|
token = rlt[1];
|