From 4da3ce19b256b62b168f3cd8f28b8c44a9e760d0 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 02 四月 2025 13:58:26 +0800
Subject: [PATCH] openLoginDlg

---
 src/router/index.ts |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 70c9818..30775ba 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -9,7 +9,7 @@
 import { Local } from '../utils/storage';
 import { accessSessionKey } from '../utils/request';
 import emitter from '../utils/mitt';
-import { SHARE_PAGE_NAME, activeChatRoom, isSharePage } from '../stores/chatRoom';
+import { SHARE_PAGE_NAME, activeChatRoom, isSharePage, openLoginDlg } from '../stores/chatRoom';
 import { nextTick } from 'vue';
 
 /**
@@ -97,7 +97,7 @@
 router.beforeEach((to, from, next) => {
 	const accessSession = Local.get(accessSessionKey);
 	if (!accessSession && to.name !==SHARE_PAGE_NAME) {
-		emitter.emit('openLoginDlg');
+		openLoginDlg();
 		if(to.name==='Home'){
 			next();
 		}else{

--
Gitblit v1.9.3