单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-09-19 5bfd636d1fc207a69391e29bcee40b279274a629
src/store/bedsideAuxiliaryScreen.ts
@@ -15,7 +15,7 @@
import { ElMessage } from "element-plus/es";
import { Local } from "@/utils/storage";
import type { DeviceLoginRecord } from './type/user.type';
import { logoutForSubScreen } from "@/utils/httpApi";
import { logOutApi } from "@/api/user";
export const useBedsideAuxiliaryScreenStore = defineStore(
  "bedsideAuxiliaryScreen",
@@ -82,8 +82,8 @@
    /** 退出登录 */
    const logout = async (deviceCode: string) => {
      await logoutForSubScreen(deviceCode);
    const logout = async (deviceCodeStr: string) => {
      await logOutApi(deviceCodeStr);
      setUserInfo(null);
    };