generated from duanshuwen/webapp-vue-frontend
feat: 调试
This commit is contained in:
@@ -12,15 +12,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
const handleClick = () => {
|
const handleClick = () => wx.closeWindow()
|
||||||
// 确保在wx.ready中调用
|
|
||||||
wx.ready(() => {
|
|
||||||
// 关闭当前webview页面
|
|
||||||
wx.miniProgram.navigateBack({
|
|
||||||
delta: 1
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user