|
@@ -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>
|