From 22cc8ce22157a32bfcd4ee14d824769c6e318cec Mon Sep 17 00:00:00 2001
From: p-honggang.li <p-honggang.li@pcitc.com>
Date: 星期一, 08 九月 2025 23:30:57 +0800
Subject: [PATCH] 修改取消订单列表展示的问题

---
 src/stores/modules/userInfo.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/stores/modules/userInfo.ts b/src/stores/modules/userInfo.ts
index 22e00c0..b6a7371 100644
--- a/src/stores/modules/userInfo.ts
+++ b/src/stores/modules/userInfo.ts
@@ -1,9 +1,6 @@
 // 鐢ㄦ埛淇℃伅鐘舵�佺鐞�
-import { update } from 'lodash'
 import { defineStore } from 'pinia'
 import { UserInfo } from '@/stores/interface'
-import router from '@/router/index'
-import { updateUserDetail } from '@/api/userInfo'
 
 export const useUserInfo = defineStore('userInfo', {
   state: (): UserInfo => {
@@ -17,6 +14,7 @@
       empCode:'',
       userId:'',
       unitId:'',//绉熸埛ID
+      departmentId: '',
       roleCodes:[],
       userInfo:{
         adminToken: '', // 绠$悊鍚庡彴鐨則oken
@@ -69,6 +67,7 @@
       this.fullUnitName = user.fullUnitName
       this.userId = user.id
       this.unitId = user.unitId
+      this.departmentId = user.departmentId
       this.roleCodes = user.roleCodes
       this.userInfo=user
     },
@@ -116,6 +115,9 @@
     getUnitId: (state) => {
       return state.unitId
     },
+    getDepartmentId: (state) => {
+      return state.departmentId
+    },
     getRoleCodes: (state) => {
       return state.roleCodes
     },

--
Gitblit v1.8.0