人生啊人生 il y a 3 mois
Parent
commit
ad00ec52f1
1 fichiers modifiés avec 13 ajouts et 6 suppressions
  1. 13 6
      user_web/src/components/QvSimulation/QvPanel/QvPanel.vue

+ 13 - 6
user_web/src/components/QvSimulation/QvPanel/QvPanel.vue

@@ -4,7 +4,7 @@ import { QvPanelEvent } from "./js/QvPanelEvent.js";
 import { QvProcessEventStore } from "../QvProcessEvent/store/QvProcessEventStore.js";
 import { QvThreeWorldCamera } from "../QvThreeWorldEvent/js/QvThreeWorldCamera.js";
 import { QvEvent } from "../QvThreeWorldEvent/js/QvEvent.js";
-
+import { showConfirmDialog } from 'vant';
 import { computed, onMounted, onUnmounted, watch, ref } from "vue";
 import { useRouter } from 'vue-router';
 const router = useRouter();
@@ -311,12 +311,19 @@ const exitEvent = () => {
     /**
      * 如果是下井实验,点击这个按钮,弹出提示框
      */
-    if (QvEvent.find().eventName == "QV下井实验") {
-
+    // if (QvEvent.find().eventName == "QV下井实验") {
+    
+        showConfirmDialog({
+            title: '提示',
+            message: '确认【离开】 吗?',
+        }).then(() => {
+            // on confirm
+            console.log("点击确认逻辑");
+        }).catch(() => {
+            // on cancel
+        });
         
-
-
-    }
+    // }
 
 }