From 1288a7890deb3b180b1e8df7015b1036514c4e71 Mon Sep 17 00:00:00 2001
From: pengwei <2071057782@qq.com>
Date: 星期四, 27 三月 2025 09:07:12 +0800
Subject: [PATCH] 3.27优化

---
 项目代码/client/src/views/system/UserInfo.vue |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/system/UserInfo.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/system/UserInfo.vue"
index ca911b1..636a6a0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/system/UserInfo.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/src/views/system/UserInfo.vue"
@@ -11,7 +11,7 @@
         >
           <el-image
             style="width: 100px; height: 100px"
-            :src="'http://192.168.0.80:5000' + userInfo.headImageUrl"
+            :src="'http://115.159.85.185:9098' + userInfo.headImageUrl"
             :fit="fit"
           />
           <!-- <img
@@ -327,11 +327,37 @@
   if (!formEl) return;
   await formEl.validate((valid, fields) => {
     if (valid) {
+      if (
+        Passwordform.value.newPwd == "" ||
+        Passwordform.value.oldPwd == "" ||
+        newPwd.value == ""
+      ) {
+        ElMessage({
+          message: "杈撳叆妗嗕笉鑳戒负绌�",
+          type: "warning",
+        });
+        return;
+      }
+      if (Passwordform.value.newPwd == Passwordform.value.oldPwd) {
+        ElMessage({
+          message: "涓ゆ瀵嗙爜涓�鑷�",
+          type: "warning",
+        });
+        return;
+      }
+      if (Passwordform.value.newPwd != newPwd.value) {
+        ElMessage({
+          message: "鏂板瘑鐮佷笉涓�鑷�",
+          type: "warning",
+        });
+        return;
+      }
       UpdatePassword(Passwordform.value).then((res) => {
         ElMessage({
           message: "淇敼鎴愬姛",
           type: "success",
         });
+        dialogVisible.value = false;
         console.log(res);
       });
     } else {
@@ -359,7 +385,6 @@
   upload.value.handleRemove(file);
 };
 const onSubmit = () => {
- 
   if (form.value.files == "") {
     ElMessage({ message: "鍥剧墖涓嶈兘涓虹┖", type: "warning" });
     return;

--
Gitblit v1.9.3