getManagerDetail
parent
40b352620e
commit
2e6a474b7c
|
|
@ -152,7 +152,7 @@ export async function getArticleDetail(id: string) {
|
|||
}
|
||||
// 外部情报-管理详情
|
||||
export async function getManagerDetail(id: string) {
|
||||
return http.get(`/article/getManagerDetail/${id}`)
|
||||
return http.get("/article/getManagerDetail?id="+id)
|
||||
}
|
||||
// 撤回
|
||||
export async function deleteWithdraw(id: string) {
|
||||
|
|
|
|||
|
|
@ -89,17 +89,17 @@ async function submitSave() {
|
|||
const { newPassword, oldPassword } = formValue.value;
|
||||
console.log(formValue.value, newPassword, oldPassword);
|
||||
if (!newPassword) {
|
||||
message.error("新密码不能为空");
|
||||
// message.error("新密码不能为空");
|
||||
return;
|
||||
}
|
||||
if (!oldPassword) {
|
||||
message.error("旧密码不能为空");
|
||||
// message.error("旧密码不能为空");
|
||||
return;
|
||||
}
|
||||
if (!isStrongPassword(newPassword)) {
|
||||
message.error(
|
||||
"新密码必须为8位及以上,包含大写字母、小写字母、数字、特殊字符中至少3种组合"
|
||||
);
|
||||
// message.error(
|
||||
// "新密码必须为8位及以上,包含大写字母、小写字母、数字、特殊字符中至少3种组合"
|
||||
// );
|
||||
return;
|
||||
}
|
||||
formdata.append("oldPassword", oldPassword);
|
||||
|
|
@ -108,7 +108,7 @@ async function submitSave() {
|
|||
headers: { "Content-Type": "application/form-data" },
|
||||
});
|
||||
if (code === 200) {
|
||||
message.success("修改成功 请重新登录");
|
||||
// message.success("修改成功 请重新登录");
|
||||
push({ name: "Entry" });
|
||||
} else message.error(msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue