no message
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script src="./utils/jweixin-1.3.2.js"></script>
|
||||
<script src="../public/js/jweixin-1.3.2.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
@@ -142,9 +142,14 @@ router.beforeEach(async (to, from, next) => {
|
||||
if (typeof wx !== "undefined") {
|
||||
console.log("to.fullPath", to.fullPath)
|
||||
|
||||
wx.miniProgram.postMessage({
|
||||
data: to.fullPath,
|
||||
})
|
||||
setTimeout(() => {
|
||||
wx.miniProgram.postMessage({
|
||||
data: location.href,
|
||||
})
|
||||
}, 200)
|
||||
// wx.miniProgram.postMessage({
|
||||
// data: to.fullPath,
|
||||
// })
|
||||
}
|
||||
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user