From 93a986bc80abdef75923054b9df9adb6e1ccff52 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 08 十月 2024 16:44:08 +0800
Subject: [PATCH] -

---
 src/pages/mine/mine.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/pages/mine/mine.vue b/src/pages/mine/mine.vue
index b74c60e..d62e102 100644
--- a/src/pages/mine/mine.vue
+++ b/src/pages/mine/mine.vue
@@ -30,7 +30,7 @@
 				<up-icon name="edit-pen" @click='isShow'></up-icon>
 			</template>
 		</up-cell>
-		<up-cell title="鎵嬫満鍙�" :value="userInfo.phone"  :border="false"></up-cell>
+		<up-cell title="鎵嬫満鍙�" :value="userInfo.phone" :border="false"></up-cell>
 		<!-- <up-cell @click="goApply" title="鐢宠鎺ュ崟" isLink :border="false"></up-cell> -->
 		<!-- <view class="tabbtns">
 			<up-button color='#fece01' class="text-69" text="淇濆瓨" @click=''></up-button>
@@ -148,12 +148,12 @@
 		});
 	}
 	const saveUserNikename = (val) => {
-		if(!userInfo.nickname){
+		if (!userInfo.nickname) {
 			$util.showToast({
 				title: "璇疯緭鍏ユ樀绉帮紒",
 				icon: "success"
 			})
-			return 
+			return
 		}
 		$api.saveUser({
 			Nickname: userInfo.nickname
@@ -163,8 +163,12 @@
 					title: "鏄电О淇濆瓨鎴愬姛锛�",
 					icon: "success"
 				})
-				store.commit('setUserInfo',userInfo.value)
+				store.commit('setUserInfo', userInfo.value)
 				showEdit.value = false
+			} else {
+				$util.showToast({
+					title: res.error
+				})
 			}
 		})
 	}

--
Gitblit v1.9.1