fix: Contacts onMounted 持久化到 store(FaceTime 等依赖 store 读取联系人)

This commit is contained in:
李岩岩 2026-07-23 14:04:33 +08:00
parent 02f626d533
commit 2298f22b03

View File

@ -68,7 +68,7 @@
</template>
<script setup lang="ts">
import { ref, reactive, computed, nextTick } from 'vue'
import { ref, reactive, computed, nextTick, onMounted } from 'vue'
import { uid } from '../../utils'
import { store } from '../../composables/useStore'
@ -154,4 +154,7 @@ async function deleteContact(c: any) {
}
defineExpose({ editContact })
// store FaceTime
onMounted(() => { persist() })
</script>