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 | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/App.vue b/App.vue
index dbfb431..d313404 100644
--- a/App.vue
+++ b/App.vue
@@ -1,14 +1,10 @@
<script>
-import {
- config,
-} from 'common/config.js';
import Vconsole from 'vconsole';
-import {
- getPlat
-} from 'common/util.js';
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