wujingjing
2024-07-18 eb0460fbc34fda7906f2949d7dce0f08542e3c8c
src/layout/component/sidebar/components/MenuList.vue
@@ -66,7 +66,7 @@
import emitter from '/@/utils/mitt';
import { accessSessionKey, userNameKey } from '/@/utils/request';
import { gotoRoute } from '/@/utils/route';
import { Local } from '/@/utils/storage';
import { Local, LoginInfo } from '/@/utils/storage';
const loginFormRef = ref<FormInstance>(null);
const isLoginStatus = ref(!!Local.get(accessSessionKey));
@@ -132,8 +132,8 @@
      user: state.loginForm.account,
      pass: state.loginForm.pwd,
   });
   Local.set(accessSessionKey, res.hswatersession);
   Local.set(userNameKey, state.loginForm.account);
   LoginInfo.set(res.hswatersession,state.loginForm.account);
   state.isShowLogin = false;
   isLoginStatus.value = true;
   window.location.reload();
@@ -149,7 +149,7 @@
const logoutClick = () => {
   state.isShowExitLogin = false;
   isLoginStatus.value = false;
   Local.remove(accessSessionKey);
   LoginInfo.remove();
};
const toggleExitLoginBtnRef = ref<HTMLDivElement>(null);