|
@@ -144,7 +144,11 @@
|
|
|
@confirm-dialog="handleCloseRoom"
|
|
|
/>
|
|
|
<CreatedName :show="showCreateNameDialog" @confirm-dialog="handleNameConfirm" />
|
|
|
- <PasswordDialog :show="showPasswordDialog" @confirm-dialog="handlePasswordConfirm" />
|
|
|
+ <PasswordDialog
|
|
|
+ :show="showPasswordDialog"
|
|
|
+ @confirm-dialog="handlePasswordConfirm"
|
|
|
+ @close-dialog="closeSocket"
|
|
|
+ />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
@@ -185,6 +189,7 @@
|
|
|
import dayjs from 'dayjs';
|
|
|
import duration from 'dayjs/plugin/duration';
|
|
|
import { useMiniApp } from '/@/hooks/useMiniApp';
|
|
|
+ const { closeSocket } = useSocket();
|
|
|
dayjs.extend(duration);
|
|
|
// hook
|
|
|
const { isDrawing, setDraw, setCloseDraw } = useDraw();
|