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