@foundbyte/uni-libs 1.0.0 → 1.0.1
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.
|
@@ -53,7 +53,7 @@ const navigateTo = (parameters) => {
|
|
|
53
53
|
uni?.webView?.navigateTo?.({ url });
|
|
54
54
|
/** 不兼容上面的方法会自动往下执行 */
|
|
55
55
|
wx.miniProgram.navigateTo({ url });
|
|
56
|
-
my
|
|
56
|
+
my?.navigateTo({ url });
|
|
57
57
|
} catch (error) {
|
|
58
58
|
console.error(error);
|
|
59
59
|
}
|
|
@@ -69,7 +69,7 @@ const redirectTo = (parameters) => {
|
|
|
69
69
|
uni?.webView?.redirectTo?.({ url });
|
|
70
70
|
/** 不兼容上面的方法会自动往下执行 */
|
|
71
71
|
wx.miniProgram.redirectTo({ url });
|
|
72
|
-
my
|
|
72
|
+
my?.redirectTo({ url });
|
|
73
73
|
} catch (error) {
|
|
74
74
|
console.error(error);
|
|
75
75
|
}
|
|
@@ -83,7 +83,7 @@ const navigateBack = (parameters) => {
|
|
|
83
83
|
uni?.webView?.navigateBack?.(parameters);
|
|
84
84
|
/** 不兼容上面的方法会自动往下执行 */
|
|
85
85
|
wx.miniProgram.navigateBack(parameters);
|
|
86
|
-
my
|
|
86
|
+
my?.navigateBack(parameters);
|
|
87
87
|
} catch (error) {
|
|
88
88
|
console.error(error);
|
|
89
89
|
}
|
|
@@ -104,7 +104,7 @@ const postMessage = (data) => {
|
|
|
104
104
|
}
|
|
105
105
|
uni?.webView?.postMessage({ data });
|
|
106
106
|
wx.miniProgram.postMessage({ data });
|
|
107
|
-
my
|
|
107
|
+
my?.postMessage({ data });
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* 设置页面分享信息
|