Skip to content

Commit 4c33187

Browse files
author
Kerwin
committed
fix: allow close login modal
1 parent c46c54c commit 4c33187

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/common/UserAvatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ onMounted(async () => {
6666
</span>
6767
</NButton>
6868
</div>
69-
<Permission :visible="needPermission" />
69+
<Permission :visible="needPermission" @update:visible="(newValue) => showPermission = newValue" />
7070
</div>
7171
</template>

src/views/chat/layout/Permission.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async function handleResetPassword() {
199199
</script>
200200

201201
<template>
202-
<NModal :show="visible" style="width: 90%; max-width: 440px">
202+
<NModal v-model:show="show" style="width: 90%; max-width: 440px">
203203
<div class="p-10 bg-white rounded dark:bg-slate-800">
204204
<div class="space-y-4">
205205
<header class="space-y-2">

0 commit comments

Comments
 (0)