Переглянути джерело

优化十分钟弹窗关闭问题

wangming 1 місяць тому
батько
коміт
8beb3d1379
1 змінених файлів з 4 додано та 1 видалено
  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>