@indfnd/common-mobile 0.0.54 → 0.0.56
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 +9 -0
- package/dist/ind-common-mobile.es.js +50 -7
- package/dist/ind-common-mobile.umd.cjs +24 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.0.56](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.55...v0.0.56) (2024-11-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 移动跳pc ([475967e](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/475967e3774f59decb8f90e79e36ce6b930d9bd4))
|
|
11
|
+
|
|
12
|
+
### [0.0.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.54...v0.0.55) (2024-10-16)
|
|
13
|
+
|
|
5
14
|
### [0.0.54](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.53...v0.0.54) (2024-08-28)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.55";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -68615,7 +68615,12 @@ const __vue2_script$3 = {
|
|
|
68615
68615
|
},
|
|
68616
68616
|
methods: {
|
|
68617
68617
|
routeTo(app2) {
|
|
68618
|
-
|
|
68618
|
+
var _a;
|
|
68619
|
+
if ((_a = app2 == null ? void 0 : app2.uri) == null ? void 0 : _a.includes("http")) {
|
|
68620
|
+
location.href = app2.uri;
|
|
68621
|
+
} else {
|
|
68622
|
+
this.$router.push({ path: app2.uri });
|
|
68623
|
+
}
|
|
68619
68624
|
},
|
|
68620
68625
|
toggleEdit() {
|
|
68621
68626
|
switch (this.currentEditStatus) {
|
|
@@ -70603,10 +70608,9 @@ const pluginLogin = (store2) => {
|
|
|
70603
70608
|
store2.commit("setUserName", "");
|
|
70604
70609
|
store2.commit("setToken", "");
|
|
70605
70610
|
return new Promise((resolve, reject) => {
|
|
70606
|
-
|
|
70607
|
-
|
|
70608
|
-
|
|
70609
|
-
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70611
|
+
const code2 = getQueryVariable("code");
|
|
70612
|
+
if (code2) {
|
|
70613
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
70610
70614
|
setToken(resp.token);
|
|
70611
70615
|
resolve(resp.token);
|
|
70612
70616
|
}).catch((e) => {
|
|
@@ -70618,9 +70622,48 @@ const pluginLogin = (store2) => {
|
|
|
70618
70622
|
});
|
|
70619
70623
|
reject(0);
|
|
70620
70624
|
});
|
|
70621
|
-
}
|
|
70625
|
+
} else {
|
|
70626
|
+
Code.postMessage("");
|
|
70627
|
+
window.getCode = function(res) {
|
|
70628
|
+
console.log("getCode res", res);
|
|
70629
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70630
|
+
setToken(resp.token);
|
|
70631
|
+
resolve(resp.token);
|
|
70632
|
+
}).catch((e) => {
|
|
70633
|
+
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70634
|
+
Message.error({
|
|
70635
|
+
content: "\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",
|
|
70636
|
+
duration: 10,
|
|
70637
|
+
closable: true
|
|
70638
|
+
});
|
|
70639
|
+
reject(0);
|
|
70640
|
+
});
|
|
70641
|
+
};
|
|
70642
|
+
}
|
|
70622
70643
|
});
|
|
70623
70644
|
};
|
|
70645
|
+
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
70646
|
+
var query = window.location.search.substring(1);
|
|
70647
|
+
var vars = query.split("&");
|
|
70648
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70649
|
+
let pair = vars[i].split("=");
|
|
70650
|
+
if (pair[0] == variable) {
|
|
70651
|
+
return pair.slice(1).join("=");
|
|
70652
|
+
}
|
|
70653
|
+
}
|
|
70654
|
+
let routeHash = window.location.hash.substring(2);
|
|
70655
|
+
if (routeHash.includes("?")) {
|
|
70656
|
+
query = routeHash.split("?")[1];
|
|
70657
|
+
}
|
|
70658
|
+
vars = query.split("&");
|
|
70659
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70660
|
+
let pair = vars[i].split("=");
|
|
70661
|
+
if (pair[0] == variable) {
|
|
70662
|
+
return pair.slice(1).join("=");
|
|
70663
|
+
}
|
|
70664
|
+
}
|
|
70665
|
+
return false;
|
|
70666
|
+
};
|
|
70624
70667
|
const checkLogin = async () => {
|
|
70625
70668
|
var _a;
|
|
70626
70669
|
try {
|