Explorar o código

fix:【pay 支付】收银界面,关闭后清理定时轮询

YunaiV hai 4 meses
pai
achega
155082a284
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/views/pay/cashier/index.vue

+ 5 - 0
src/views/pay/cashier/index.vue

@@ -459,6 +459,11 @@ onMounted(() => {
   }
   getDetail()
 })
+
+/** 销毁 */
+onBeforeUnmount(() => {
+  clearQueryInterval()
+})
 </script>
 
 <style lang="scss" scoped>