fix: xinchun
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="profile-page" >
|
||||
<view class="profile-page">
|
||||
<NavBar title="个人信息" />
|
||||
|
||||
<!-- Content -->
|
||||
@@ -39,7 +39,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="info-item" @click="handleEditManifesto">
|
||||
<text class="label">新春宣言</text>
|
||||
<text class="label">个性宣言</text>
|
||||
<view class="value-box">
|
||||
<text class="value red-text">{{ form.bio || "点击选择" }}</text>
|
||||
<uni-icons type="compose" size="16" color="#ccc" />
|
||||
@@ -186,12 +186,12 @@ const handleSave = async () => {
|
||||
const originalForm = {
|
||||
nickName: userInfo.value.nickName || "",
|
||||
gender: userInfo.value.gender || 1,
|
||||
bio: userInfo.value.bio || "万事如意,岁岁平安"
|
||||
bio: userInfo.value.bio || "万事如意,岁岁平安",
|
||||
};
|
||||
|
||||
try {
|
||||
const res = await updateUserInfo({
|
||||
nickname: form.value.nickName,
|
||||
nickname: form.value.nickName,
|
||||
gender: form.value.gender,
|
||||
bio: form.value.bio,
|
||||
});
|
||||
@@ -204,7 +204,7 @@ const handleSave = async () => {
|
||||
} else {
|
||||
// 恢复之前的内容
|
||||
form.value = { ...originalForm };
|
||||
uni.showToast({ title: res.message || '修改失败', icon: "none" });
|
||||
uni.showToast({ title: res.message || "修改失败", icon: "none" });
|
||||
uni.hideLoading();
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user