panhui 2 lat temu
rodzic
commit
91c343def6
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      src/App.vue

+ 7 - 1
src/App.vue

@@ -120,6 +120,10 @@ useBackButton(1, processNextHandler => {
     }
 })
 onMounted(() => {
+    // init()
+})
+
+function init() {
     useSystemStore().getSysConfigs()
     emitter.on('promptLogin', promptLogin)
     emitter.on('customer', customer)
@@ -135,12 +139,14 @@ onMounted(() => {
             })
         })
     })
-})
+}
+
 onBeforeUnmount(() => {
     emitter.off('promptLogin', promptLogin)
 })
 const showCustmer = ref(false)
 function customer() {
+    init()
     showCustmer.value = true
 }