getManagerDetail

main
zouyiqing 2023-10-18 14:25:51 +08:00
parent 40b352620e
commit 2e6a474b7c
2 changed files with 7 additions and 7 deletions

View File

@ -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) {

View File

@ -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);
} }