Explorar o código

优化十分钟弹窗关闭问题

wangming hai 1 mes
pai
achega
8beb3d1379
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/components/component/tenMinutes.vue

+ 4 - 1
src/components/component/tenMinutes.vue

@@ -61,6 +61,7 @@ import {
     isWmpf,
 } from "../../const.js";
 import { AsyncValue } from "../../utils";
+import { onHide } from "@dcloudio/uni-app";
 const wmpfVoip = requirePlugin("wmpf-voip").default;
 const envVersion = wx.getAccountInfoSync().miniProgram.envVersion;
 const apiTypes = ["校园模式", "硬件模式", "呼叫安卓", "校园+硬件模式"];
@@ -505,7 +506,9 @@ export default {
     mounted() {
         this.getFallingEventsQuery();
     },
-    beforeDestroy() {},
+    onHide() {
+        uni.hideLoading();
+    },
 };
 </script>