diff --git a/index.html b/index.html index 0893b63a980238b26efcd75fbd4453e3721deb82..93e8a229258665f076b6292aee02dfd0e27bdbb8 100644 --- a/index.html +++ b/index.html @@ -1,21 +1,37 @@ - - - - - - - - - - - -
- - + + + + + + + + + + + +
+ + diff --git a/main.uts b/main.uts index 48e60deef3d58a9a61b6011017f287165b897a11..932b57eae4d6e6c42833f4f6191d73b05fb5f14b 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 c7392118794aca428b67fe11fdd630581413974a..a912fc2b8b7c2513e9d7344b233cd7894a062ab6 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