fix: bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"version" : "1.0",
|
||||
"configurations" : [
|
||||
{
|
||||
"playground" : "custom",
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -316,7 +316,12 @@
|
||||
canLoad.value = false
|
||||
})
|
||||
onMounted(() => {})
|
||||
onBackPress((res) => res.from === 'backbutton');
|
||||
onBackPress((res) => {
|
||||
if(res.from === 'backbutton'){
|
||||
goBack()
|
||||
return true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@@ -636,7 +636,12 @@
|
||||
onMounted(() => {
|
||||
// getDetailInfo()
|
||||
});
|
||||
onBackPress((res) => res.from === 'backbutton');
|
||||
onBackPress((res) => {
|
||||
if(res.from === 'backbutton'){
|
||||
goBack()
|
||||
return true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user