单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-09-10 c980edafe5bf00f9cfe5d999896bb3bb971c8943
src/views/mobile/bedsideAuxiliaryScreen/components/Login/index.vue
@@ -59,12 +59,13 @@
    });
    const isLoginng = computed(() => {
      return !!bedsideAuxiliaryScreenStore.token;
      return !!bedsideAuxiliaryScreenStore.userInfo?.code;
    });
    const qrCodeData = computed(() => {
      return {
        deviceCode: bedsideAuxiliaryScreenStore.deviceCode,
        deviceNo: bedsideAuxiliaryScreenStore.deviceData.devicdeNo,
      };
    });
@@ -77,13 +78,23 @@
    };
    const onLogout = () => {
      if (state.loading) return ElMessage.warning('正在退出中...')
      ElMessageBox.confirm("是否确认退出当前登录用户?", "提示", {
        confirmButtonText: "确认",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
            bedsideAuxiliaryScreenStore.logout();
        .then(async() => {
            state.loading = true
            try {
              await bedsideAuxiliaryScreenStore.logout(bedsideAuxiliaryScreenStore.deviceCode);
              handleCancel();
              ElMessage.success('退出登录成功')
            } catch (error) {
              ElMessage.success('退出登录失败')
            } finally {
              state.loading = false;
            }
          ElMessage({
            type: "success",
            message: "退出成功!",