fix: Contacts onMounted 持久化到 store(FaceTime 等依赖 store 读取联系人)
This commit is contained in:
parent
02f626d533
commit
2298f22b03
@ -68,7 +68,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, computed, nextTick } from 'vue'
|
import { ref, reactive, computed, nextTick, onMounted } from 'vue'
|
||||||
import { uid } from '../../utils'
|
import { uid } from '../../utils'
|
||||||
import { store } from '../../composables/useStore'
|
import { store } from '../../composables/useStore'
|
||||||
|
|
||||||
@ -154,4 +154,7 @@ async function deleteContact(c: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ editContact })
|
defineExpose({ editContact })
|
||||||
|
|
||||||
|
// 确保联系人数据在 store 中可用(供 FaceTime 等读取)
|
||||||
|
onMounted(() => { persist() })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user