lighter 3 лет назад
Родитель
Сommit
338942446f
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

+ 6 - 2
src/views/hospitalization/case-front-sheet/AllCaseFrontSheet.vue

@@ -739,7 +739,7 @@
 
 <script>
 import { yesOrNo, haveOrNot, searchMethods, autopsies, initShowDel, filterDismissStatus, clone } from './common'
-import { computed, onMounted, reactive, ref, watchEffect } from 'vue'
+import { computed, onActivated, onMounted, reactive, ref, watchEffect } from 'vue'
 import store from '@/store'
 import { operations } from '@/data/index'
 import {
@@ -1457,8 +1457,12 @@ export default {
         }
       }, 100)
     }
-    onMounted(() => {
+
+    onActivated(() => {
       initLodop()
+    })
+
+    onMounted(() => {
       document.addEventListener('keydown', handleEvent)
       getAllDictionary().then((res) => {
         dics.value = res