From c498177185391b997c9f9c76e0c7ce7a472da542 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 03 一月 2025 11:41:29 +0800
Subject: [PATCH] feat(地理位置检测): 开启位置检测

---
 App.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/App.vue b/App.vue
index 2ef569d..d313404 100644
--- a/App.vue
+++ b/App.vue
@@ -2,7 +2,9 @@
 import Vconsole from 'vconsole';
 	export default {
 		onLaunch: function(opt) {
-      uni.setStorageSync('DEBUG', opt.query?.debug == 'true');
+      if(opt.query?.debug){
+        uni.setStorageSync('DEBUG', opt.query?.debug == 'true');
+      }
       if (uni.getStorageSync('DEBUG')) {
         new Vconsole();
       }

--
Gitblit v1.9.1