Parcourir la source

尝试解决返回需要返回两次的问题

cxmo il y a 7 mois
Parent
commit
9b173de902
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1 0
      src/views/report/Detail.vue
  2. 1 0
      src/views/report/HT_PDF.vue

+ 1 - 0
src/views/report/Detail.vue

@@ -187,6 +187,7 @@ onMounted(() => {
 })
 onUnmounted(() => {
   window.removeEventListener('scroll', handlePageScroll)
+  wx.miniProgram.navigateBack({})
 })
 
 </script>

+ 1 - 0
src/views/report/HT_PDF.vue

@@ -108,6 +108,7 @@ onMounted(() => {
 })
 onUnmounted(() => {
   window.removeEventListener('scroll', handlePageScroll)
+  wx.miniProgram.navigateBack({})
 })
 </script>