Merge pull request #191 from xinsenyan/correct_userid_to_string
修改userid为字符
This commit is contained in:
commit
c4ad60528c
|
@ -11,7 +11,7 @@ export function createTableDataApi(data: Tables.CreateOrUpdateTableRequestData)
|
|||
}
|
||||
|
||||
/** 删 */
|
||||
export function deleteTableDataApi(id: number) {
|
||||
export function deleteTableDataApi(id: string) {
|
||||
return request({
|
||||
url: `api/v1/users/${id}`,
|
||||
method: "delete"
|
||||
|
@ -42,7 +42,7 @@ export function getTableDataApi(params: Tables.TableRequestData) {
|
|||
* @param password 新密码
|
||||
* @returns BaseResponse
|
||||
*/
|
||||
export function resetPasswordApi(userId: number, password: string) {
|
||||
export function resetPasswordApi(userId: string, password: string) {
|
||||
return request({
|
||||
url: `api/v1/users/${userId}/reset-password`,
|
||||
method: "put",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export interface CreateOrUpdateTableRequestData {
|
||||
id?: number
|
||||
id?: string
|
||||
username: string
|
||||
email?: string
|
||||
password?: string
|
||||
|
@ -21,7 +21,7 @@ export interface TableRequestData {
|
|||
}
|
||||
|
||||
export interface TableData {
|
||||
id: number
|
||||
id: string
|
||||
username: string
|
||||
email: string
|
||||
createTime: string
|
||||
|
|
|
@ -39,7 +39,7 @@ const formRules: FormRules<CreateOrUpdateTableRequestData> = {
|
|||
// #region 重置密码
|
||||
const resetPasswordDialogVisible = ref<boolean>(false)
|
||||
const resetPasswordFormRef = ref<FormInstance | null>(null)
|
||||
const currentUserId = ref<number | undefined>(undefined) // 用于存储当前要重置密码的用户ID
|
||||
const currentUserId = ref<string | undefined>(undefined) // 用于存储当前要重置密码的用户ID
|
||||
const resetPasswordFormData = reactive({
|
||||
password: ""
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue