diff --git a/dist.rar b/dist.rar deleted file mode 100644 index ca1749a..0000000 Binary files a/dist.rar and /dev/null differ diff --git a/src/api/system.ts b/src/api/system.ts index f54a075..91c518f 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -92,8 +92,8 @@ export function downloadFile(id) { * @returns 重置用户密码 */ export const resetPW = (data?: object) => { - return http.request("get", "/know-sub/user/resetPW", { - params: data + return http.request("put", "/know-sub/user/resetPW", { + data }); }; diff --git a/src/views/home/components/table/columns.tsx b/src/views/home/components/table/columns.tsx index 21ce047..a1b8a3c 100644 --- a/src/views/home/components/table/columns.tsx +++ b/src/views/home/components/table/columns.tsx @@ -31,7 +31,7 @@ export function useColumns() { }, { label: "最新时间", - prop: "date" + prop: "updateTime" } ]; diff --git a/src/views/systemManagement/accountManagement/index.vue b/src/views/systemManagement/accountManagement/index.vue index 91914f4..f0aadf9 100644 --- a/src/views/systemManagement/accountManagement/index.vue +++ b/src/views/systemManagement/accountManagement/index.vue @@ -226,7 +226,8 @@ const submitForm = (formEl: FormInstance | undefined) => { if (valid) { // console.log(valid); resetPW({ - id: passwordForm.id + id: passwordForm.id, + password: passwordForm.password }).then(res => { if (res.code === 200) { message("重置成功", { type: "success" }); @@ -298,6 +299,7 @@ const deleteName = (type: any) => { }; //角色权限 const handleRolePermission = row => { + console.log(row); roleSetVisible.value = true; }; //状态切换 @@ -344,7 +346,7 @@ onMounted(() => {