feat:部门选择

This commit is contained in:
houjunxiang
2025-11-26 18:11:13 +08:00
parent 96cc747150
commit fcc04865f9
15 changed files with 344 additions and 83 deletions

View File

@@ -3,6 +3,7 @@ import userApi from '@/nx/api/user'
import { getSysParameterBizByName } from '@/nx/api/sys'
import md5 from 'md5'
import nx from '@/nx'
import { COMPANY_DEPT_RETRY_HEADER, VISIT_COMPANY_STORAGE_KEY, VISIT_DEPT_STORAGE_KEY } from '@/nx/config'
// 默认用户信息
const defaultUserInfo = {
avatar: '', // 头像
@@ -128,6 +129,10 @@ const user = defineStore({
this.roleMenus = []
uni.setStorageSync('roleMenus', [])
this.setToken()
// 清空部门信息
uni.removeStorageSync(COMPANY_DEPT_RETRY_HEADER)
uni.removeStorageSync(VISIT_COMPANY_STORAGE_KEY)
uni.removeStorageSync(VISIT_DEPT_STORAGE_KEY)
}
}
})