From 0dcc91c4506243ae3846ae785c358ce36fc44103 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 24 Apr 2026 16:59:49 +0800
Subject: [PATCH] feat: 首页校验一下是否登录

---
 src/pages/map/index.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/pages/map/index.vue b/src/pages/map/index.vue
index b92167f..09ceb5a 100644
--- a/src/pages/map/index.vue
+++ b/src/pages/map/index.vue
@@ -18,6 +18,7 @@
 import { getWebViewUrl } from "@/utils/index.js";
 import WebViewPlus from "@/components/WebViewPlus.vue";
 import { onHide, onShow } from "@dcloudio/uni-app";
+import {getUserInfo} from "@/api/user/index.js";
 // const viewUrl = getWebViewUrl("/defaultMap");
 
 let envParam = "";
@@ -74,6 +75,9 @@
 };
 
 onShow(() => {
+  // 验证一下有没有登录
+  getUserInfo()
+
   // #ifndef MP-WEIXIN
   uni.setTabBarItem({
     index: 2, // Tab 的索引(从0开始)

--
Gitblit v1.9.3