@zfqh/uniapp 0.3.2 → 0.3.3
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/mixins/webview.js +1 -1
- package/lib/utils/navigate.js +8 -3
- 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.3.3](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.3.2...@zfqh/uniapp@0.3.3) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.3.2](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.3.1...@zfqh/uniapp@0.3.2) (2026-07-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zfqh/uniapp
|
package/lib/mixins/webview.js
CHANGED
package/lib/utils/navigate.js
CHANGED
|
@@ -5,7 +5,7 @@ import { IS_WEBVIEW_ENV, WEBVIEW_ENV } from './consts';
|
|
|
5
5
|
import { inPages, getPage } from './pages';
|
|
6
6
|
import { joinPath } from './index';
|
|
7
7
|
// 检测协议路径
|
|
8
|
-
const checkProtocolMatch = (url) => url.match(/^(\w+):\//);
|
|
8
|
+
const checkProtocolMatch = (url) => url.match(/^([\w.]+):\//);
|
|
9
9
|
// 转换绝对路径
|
|
10
10
|
const getAbsoUrl = (url, current) => {
|
|
11
11
|
if (!url.startsWith('/') && !checkProtocolMatch(url)) {
|
|
@@ -82,8 +82,13 @@ const navigate = function (url = '', type = 'navigateTo') {
|
|
|
82
82
|
isNative = inPages(page.nativePages, url);
|
|
83
83
|
}
|
|
84
84
|
if (!isNative) {
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (!checkProtocolMatch(url)) {
|
|
86
|
+
if (app?.code) {
|
|
87
|
+
url = `${app.code}:/${url}`;
|
|
88
|
+
}
|
|
89
|
+
else if (app?.appId) {
|
|
90
|
+
url = `${app.appId}:/${url}`;
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
else if (IS_WEBVIEW_ENV && opts['native'] === false) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zfqh/uniapp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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": "35c5484693d21d5f8e01fff8e7e568e433faf3c5"
|
|
50
50
|
}
|