From e2b2d9175832558abc80a5a0d4cc2278d0665cf9 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期四, 14 十一月 2024 13:08:37 +0800 Subject: [PATCH] 修改新手指导 --- src/layout/component/sidebar/components/MenuList.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/layout/component/sidebar/components/MenuList.vue b/src/layout/component/sidebar/components/MenuList.vue index aa1689e..579cdb5 100644 --- a/src/layout/component/sidebar/components/MenuList.vue +++ b/src/layout/component/sidebar/components/MenuList.vue @@ -37,7 +37,7 @@ </div> </div> </div> - <div class="pc-login items-center justify-center" style="display: flex" v-show="state.isShowLogin"> + <div class="pc-login items-center justify-center" style="display: flex" v-show="isShowLogin"> <div class="login_box"> <div class="sign_in"> <i class="ywifont ywicon-guanbi closes" @click="handleClose"></i> @@ -96,6 +96,7 @@ import { computed, onMounted, reactive, ref, watchEffect } from 'vue'; import { PostLogin, loginMessageUser, loginVerifyMessage } from '/@/api/ai/user'; import router from '/@/router'; +import { isSharePage, isShowLogin } from '/@/stores/chatRoom'; import emitter from '/@/utils/mitt'; import { accessSessionKey, userNameKey } from '/@/utils/request'; import { gotoRoute } from '/@/utils/route'; @@ -136,7 +137,6 @@ routerName: 'AboutUs', }, ], - isShowLogin: false, isShowExitLogin: false, loginForm: { account: '', @@ -167,10 +167,12 @@ //鐧诲綍 const openLoginDlg = async () => { - state.isShowLogin = true; + // 鍒嗕韩椤典笉闇�瑕� + if (isSharePage.value) return; + isShowLogin.value = true; }; const handleClose = () => { - state.isShowLogin = false; + isShowLogin.value = false; }; const hasSended = computed(() => { return countdown.value !== null; @@ -209,7 +211,7 @@ LoginInfo.set(res.hswatersession, state.loginPhoneForm.phoneUser); } - state.isShowLogin = false; + isShowLogin.value = false; isLoginStatus.value = true; window.location.reload(); }; @@ -262,7 +264,7 @@ }; onMounted(() => { emitter.on('openLoginDlg', () => { - if (state.isShowLogin || isLoginStatus.value) return; + if (isShowLogin.value || isLoginStatus.value) return; openLoginDlg(); }); -- Gitblit v1.9.3