<template>
<view class="container">
<view class="title">测试页面D</view>
<button type="primary" @click="backToA">返回页面A(使用reLaunch)</button>
</view>
</template>
<script>
export default {
data() {
return {}
},
methods: {
backToA() {
uni.reLaunch({
url: '/pages/test-a/test-a'
})
}
}
}
</script>
<style>
.container {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.title {
font-size: 20px;
margin-bottom: 20px;
}
</style>
小孩子才选 (作者)
升级到4.76仍然没用,这是浏览器的历史记录。不是点击项目中头部的返回箭头,是点击浏览器的返回
2025-09-28 14:24