@indfnd/common-mobile 0.0.33 → 0.0.34
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 +7 -0
- package/dist/ind-common-mobile.es.js +9 -2
- package/dist/ind-common-mobile.umd.cjs +26 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.34](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.33...v0.0.34) (2024-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 增加了一些日志 ([b06a142](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b06a1426f1f30661a914b2d6ab4e4ddc0a8701ec))
|
|
11
|
+
|
|
5
12
|
### [0.0.33](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.32...v0.0.33) (2024-06-17)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, useConfig, getL
|
|
|
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.33";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -70313,12 +70313,18 @@ const pluginLogin = (store2) => {
|
|
|
70313
70313
|
resolve(resp.token);
|
|
70314
70314
|
}).catch((e) => {
|
|
70315
70315
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70316
|
+
Message.error({
|
|
70317
|
+
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",
|
|
70318
|
+
duration: 10,
|
|
70319
|
+
closable: true
|
|
70320
|
+
});
|
|
70316
70321
|
reject(0);
|
|
70317
70322
|
});
|
|
70318
70323
|
};
|
|
70319
70324
|
});
|
|
70320
70325
|
};
|
|
70321
70326
|
const checkLogin = async () => {
|
|
70327
|
+
var _a;
|
|
70322
70328
|
try {
|
|
70323
70329
|
let token = getToken();
|
|
70324
70330
|
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
@@ -70327,9 +70333,10 @@ const checkLogin = async () => {
|
|
|
70327
70333
|
token
|
|
70328
70334
|
}
|
|
70329
70335
|
});
|
|
70330
|
-
return resp.data.code == 1;
|
|
70336
|
+
return ((_a = resp.data) == null ? void 0 : _a.code) == 1;
|
|
70331
70337
|
} catch (e) {
|
|
70332
70338
|
console.log("getLoginData e", e);
|
|
70339
|
+
Message.error({ content: "\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01", duration: 10, closable: true });
|
|
70333
70340
|
return false;
|
|
70334
70341
|
}
|
|
70335
70342
|
};
|