no message

This commit is contained in:
A1300399510 2024-12-03 18:58:14 +08:00
parent 1d0d54e445
commit bc299037e5
6 changed files with 12 additions and 7 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/app~42f9d7e6.9764086e.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
</div> </div>
</div> </div>
</template> </template>
<script src="./utils/jweixin-1.3.2.js"></script> <script src="../public/js/jweixin-1.3.2.js"></script>
<script> <script>

View File

@ -142,9 +142,14 @@ router.beforeEach(async (to, from, next) => {
if (typeof wx !== "undefined") { if (typeof wx !== "undefined") {
console.log("to.fullPath", to.fullPath) console.log("to.fullPath", to.fullPath)
wx.miniProgram.postMessage({ setTimeout(() => {
data: to.fullPath, wx.miniProgram.postMessage({
}) data: location.href,
})
}, 200)
// wx.miniProgram.postMessage({
// data: to.fullPath,
// })
} }
next() next()