未验证 提交 9abcbbac 编写于 作者: S songjianet 提交者: GitHub

[Fix][UI Next][V1.0.0-Beta] Fix the bug that the tenant is 0 when editing a user. (#9739)

上级 0176f4bf
......@@ -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 {
userName: string
userType: TUserType
tenantCode: string
tenantId: null | number
queueName: string
email: 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
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册