feat: 调试返回

This commit is contained in:
DEV_DSW
2026-02-05 11:58:17 +08:00
parent 2802c880ae
commit 023f2c2700
2 changed files with 4 additions and 2 deletions

View File

@@ -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>

View File

@@ -16,7 +16,9 @@ const handleClick = () => {
// 确保在wx.ready中调用
wx.ready(() => {
// 关闭当前webview页面
wx.miniProgram.closeWebview({})
wx.miniProgram.navigateBack({
delta: 1
})
})
}
</script>