From 99f528e235f11126fea44480c6e8888a9e463f2f Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 08 十一月 2025 21:09:53 +0800
Subject: [PATCH] feat:任务附件上传和同步

---
 app/pages/index.vue |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/app/pages/index.vue b/app/pages/index.vue
index 27abff0..72efa8a 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -196,6 +196,13 @@
       }
     },
     onLoad() {
+      // 妫�鏌ョ敤鎴锋槸鍚﹀凡鐧诲綍
+      const userId = this.currentUser.userId
+      if (!userId) {
+        console.log('鐢ㄦ埛鏈櫥褰曪紝璺宠繃鍔犺浇鏁版嵁')
+        return
+      }
+      
       // 鍔犺浇鐢ㄦ埛缁戝畾杞﹁締淇℃伅
       this.loadUserVehicle()
       // 鍔犺浇姝e湪杩愯鐨勪换鍔�
@@ -204,6 +211,13 @@
       this.loadUnreadMessageCount()
     },
     onShow() {
+      // 妫�鏌ョ敤鎴锋槸鍚﹀凡鐧诲綍
+      const userId = this.currentUser.userId
+      if (!userId) {
+        console.log('鐢ㄦ埛鏈櫥褰曪紝璺宠繃鍔犺浇鏁版嵁')
+        return
+      }
+      
       // 姣忔鏄剧ず椤甸潰鏃跺埛鏂颁换鍔″垪琛ㄣ�佺粦瀹氳溅杈嗗拰娑堟伅鏁伴噺
       this.loadUserVehicle()
       this.loadRunningTasks()

--
Gitblit v1.9.1