From 05316275ee6f1623cc022a3cb4967a440c105a6b Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 29 七月 2025 16:43:42 +0800
Subject: [PATCH] add:编辑资料

---
 sub-pages/mine/index.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/sub-pages/mine/index.vue b/sub-pages/mine/index.vue
index d761aa9..436e163 100644
--- a/sub-pages/mine/index.vue
+++ b/sub-pages/mine/index.vue
@@ -46,8 +46,8 @@
             </view> -->
           </view>
           <view class="action-buttons">
-<!--            <up-button text="编辑资料" size="mini" type="info" plain hairline @click="navigateTo('/sub-pages/mine/profile-edit')"-->
-<!--              :custom-style="{ backgroundColor: 'transparent', borderColor: '#B1ABA9' }" />-->
+            <up-button text="编辑资料" size="mini" type="info" plain hairline @click="navigateTo('/sub-pages/mine/profile-edit')"
+              :custom-style="{ backgroundColor: 'transparent', borderColor: '#B1ABA9' }" />
 <!--            <up-icon name="setting" size="40rpx" @click="navigateTo('/sub-pages/mine/settings')" />-->
           </view>
         </view>
@@ -168,7 +168,10 @@
 onShow(() => {
   getLocation()
   if (userStore.hasLogin) {
-    fetchList();
+    // 强制刷新用户信息
+    userStore.getCurrentInfo().then(() => {
+      fetchList();
+    });
   }else {
     // 用户未登录,清空列表
     likeList.value = [];

--
Gitblit v1.9.3