@@ -29,7 +29,7 @@ interface AlertGroupIdReq {
interface UserReq {
email: string
- tenantId: number
+ tenantId: number | null
userName: string
userPassword: string
phone?: string
@@ -32,7 +32,7 @@ export function useUserDetail() {
const initialValues = {
userName: '',
userPassword: '',
- tenantId: 0,
+ tenantId: null,
email: '',
queue: '',
phone: '',
@@ -34,6 +34,7 @@ interface IRecord {
userType: TUserType
tenantCode: string
+ tenantId: null | number
queueName: string
phone: string
@@ -53,6 +53,7 @@ export function useTable() {
record.updateTime = record.updateTime
? format(parseTime(record.updateTime), 'yyyy-MM-dd HH:mm:ss')
: ''
+ record.tenantId = record.tenantId === 0 ? null : record.tenantId
return record
})