@foundbyte/uni-libs 1.0.1 → 1.0.2
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.
|
@@ -102,9 +102,13 @@ const postMessage = (data) => {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
try {
|
|
106
|
+
uni?.webView?.postMessage({ data });
|
|
107
|
+
wx.miniProgram.postMessage({ data });
|
|
108
|
+
my?.postMessage({ data });
|
|
109
|
+
} catch (error) {
|
|
110
|
+
console.error(error);
|
|
111
|
+
}
|
|
108
112
|
};
|
|
109
113
|
/**
|
|
110
114
|
* 设置页面分享信息
|