From 53bf1e11c46964e15ab2d334457066ed3b68c98d Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 06 六月 2025 12:57:57 +0800 Subject: [PATCH] refactor(lb-eims):调整代码和更新配置- 注释掉 EimsEquImportVo 中的 @ExcelProperty 注解 - 优化 EimsEquImportListener 中的异常日志输出- 更新 snailjob 监控页面的 iframe 源地址- 修改移动端项目的 API 基础 URL - 优化移动端页面跳转逻辑 - 改进维修请求列表的接单操作流程 --- eims-ui-mobile/src/store/user.ts | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/eims-ui-mobile/src/store/user.ts b/eims-ui-mobile/src/store/user.ts index 82bd873..73058d3 100644 --- a/eims-ui-mobile/src/store/user.ts +++ b/eims-ui-mobile/src/store/user.ts @@ -1,14 +1,15 @@ import { defineStore } from 'pinia' import { ref } from 'vue' +import type { UserInfoResp, UserInfo } from '@/service/login.d' -const initState = { nickname: '', avatar: '' } +const initState = null export const useUserStore = defineStore( - 'user', + 'userInfo', () => { - const userInfo = ref<IUserInfo>({ ...initState }) + const userInfo = ref<UserInfo>({ ...initState }) - const setUserInfo = (val: IUserInfo) => { + const setUserInfo = (val: UserInfo) => { userInfo.value = val } @@ -19,13 +20,11 @@ const reset = () => { userInfo.value = { ...initState } } - const isLogined = computed(() => !!userInfo.value.token) return { userInfo, setUserInfo, clearUserInfo, - isLogined, reset, } }, -- Gitblit v1.9.3