@zfqh/uniapp 0.2.26 → 0.2.27
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 +8 -0
- package/lib/utils/update.d.ts +1 -1
- package/lib/utils/update.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.27](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.26...@zfqh/uniapp@0.2.27) (2026-06-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.2.26](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.25...@zfqh/uniapp@0.2.26) (2026-06-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zfqh/uniapp
|
package/lib/utils/update.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export interface InstallOptions {
|
|
|
15
15
|
message: string;
|
|
16
16
|
}) => void;
|
|
17
17
|
}
|
|
18
|
-
export declare function checkVersion(appId: string): Promise<VersionInfo | null>;
|
|
18
|
+
export declare function checkVersion(appId: string, cb?: any): Promise<VersionInfo | null>;
|
|
19
19
|
export declare function installUpdate(options: InstallOptions): void;
|
|
20
20
|
export declare function restartApp(): void;
|
package/lib/utils/update.js
CHANGED
|
@@ -43,7 +43,7 @@ function h5GetProperty(appId) {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
// #endif
|
|
46
|
-
export async function checkVersion(appId) {
|
|
46
|
+
export async function checkVersion(appId, cb) {
|
|
47
47
|
try {
|
|
48
48
|
let version = 0;
|
|
49
49
|
let data = null;
|
|
@@ -68,6 +68,9 @@ export async function checkVersion(appId) {
|
|
|
68
68
|
platform: plat,
|
|
69
69
|
}, { custom: { message: false } });
|
|
70
70
|
const lastVer = { ...res?.data };
|
|
71
|
+
if (typeof cb === 'function') {
|
|
72
|
+
cb(lastVer);
|
|
73
|
+
}
|
|
71
74
|
// #ifdef APP
|
|
72
75
|
if (uni.$store?.state?.dict && platform === 'android' && appId === app.appId && env.key === 'prod') {
|
|
73
76
|
await uni.$store.dispatch('getDictInfo', { name: 'group_relation', cache: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zfqh/uniapp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"description": "uniapp公共模块",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@types/qs": "^6.9.16",
|
|
47
47
|
"@types/url-parse": "^1.4.11"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "6bc8ded30fa266be58a4affc226f9b540b32b006"
|
|
50
50
|
}
|