From 188275e175dfcb59d8def2a7ff4493b0694da6a8 Mon Sep 17 00:00:00 2001 From: mehaotian <490272692@qq.com> Date: Thu, 19 Sep 2024 11:28:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Eweb=E7=99=BE=E5=BA=A6?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 56 ++++++++++++------- main.uts | 15 +++++ .../uni-stat/utssdk/common/utils/pageInfo.uts | 1 - 3 files changed, 51 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index 0893b63a..93e8a229 100644 --- a/index.html +++ b/index.html @@ -1,21 +1,37 @@ - - - - - - - - - - - -
- - + + + + + + + + + + + +
+ + diff --git a/main.uts b/main.uts index 48e60dee..932b57ea 100644 --- a/main.uts +++ b/main.uts @@ -1,11 +1,26 @@ // 仅测试 console.log 时机问题 import './test-main-console.uts' +import { uniStat } from '@/uni_modules/uni-stat/plugin.uts' + import App from './App.uvue' import { createSSRApp } from 'vue' +// 统计配置 +const collectItems = { + uniStatPageLog: true +} + +const statOptions = { + debug: false, + collectItems: collectItems, +} + + export function createApp() { const app = createSSRApp(App) + app.use(uniStat, statOptions) + // app.mixin({ // onReady() { // setTimeout(() => { diff --git a/uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts b/uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts index c7392118..a912fc2b 100644 --- a/uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts +++ b/uni_modules/uni-stat/utssdk/common/utils/pageInfo.uts @@ -416,7 +416,6 @@ export const uni_cloud_config = () : UniCloudInitOptions | null => { export const get_space = (config : UniCloudInitOptions) : UniCloudInitOptions | null => { const uniCloudConfig = uni_cloud_config() if (uniCloudConfig == null) { - console.log(config); // #ifdef APP-ANDROID if (config.spaceId != '') { return config -- GitLab