Explorar el Código

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

cxmo hace 7 meses
padre
commit
9b173de902
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  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>