ZaiZai hai 1 ano
pai
achega
29bec3736a
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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>