8
0
ZaiZai 1 gadu atpakaļ
vecāks
revīzija
29bec3736a
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      src/views/desk/wbs.vue

+ 6 - 1
src/views/desk/wbs.vue

@@ -59,7 +59,7 @@
 </template>
 
 <script setup>
-import { onActivated, ref } from 'vue'
+import { onActivated, onDeactivated, ref } from 'vue'
 import { HcDelMsg } from 'hc-vue3-ui'
 import { arrToId, deepClone, formValidate, getArrValue, getObjValue, isNullES } from 'js-fast-way'
 import { getDictionaryData, reloadPage } from '~uti/tools'
@@ -211,4 +211,9 @@ const elementLibrary = () => {
 const editRowLib = (row) => {
 
 }
+
+//离开了当前页面
+onDeactivated(() => {
+    isElementLibShow.value = false
+})
 </script>