generated from duanshuwen/webapp-vue-frontend
feat: 调试返回
This commit is contained in:
@@ -13,6 +13,6 @@
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -16,7 +16,9 @@ const handleClick = () => {
|
||||
// 确保在wx.ready中调用
|
||||
wx.ready(() => {
|
||||
// 关闭当前webview页面
|
||||
wx.miniProgram.closeWebview({})
|
||||
wx.miniProgram.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user