|
@@ -1,4 +1,4 @@
|
|
|
-export default function ({ $userAgent }, i) {
|
|
|
+export default function ({ $userAgent, $wx }, i) {
|
|
|
// const before = () => {
|
|
|
// if ($userAgent.isApp) {
|
|
|
// return;
|
|
@@ -48,7 +48,7 @@ export default function ({ $userAgent }, i) {
|
|
|
}
|
|
|
|
|
|
if ($userAgent.isMiniProgram) {
|
|
|
- this.$wx.miniProgram.postMessage({
|
|
|
+ $wx?.miniProgram?.postMessage({
|
|
|
data: {
|
|
|
action: 'updateAppMessageShareData',
|
|
|
params: {
|