diff --git a/App.uvue b/App.uvue index 5cb75bf4e080e17d98dfd17976b253ed874e8d9e..7d07afab16b0268105253c5373d4dbfef892798e 100644 --- a/App.uvue +++ b/App.uvue @@ -47,15 +47,15 @@ // } as PerformanceObserverOptions) // 统计上报 - 应用启动 - uni.report({ - name: 'uni-app-launch', - options: res, - success(res_data) { - console.log(res_data); - }, fail(err_data) { - console.log(err_data); - } - }) + // uni.report({ + // name: 'uni-app-launch', + // options: res, + // success(res_data) { + // console.log(res_data); + // }, fail(err_data) { + // console.log(err_data); + // } + // }) }, onShow: function (res : OnShowOptions) { this.globalData.onShowOption = res @@ -73,14 +73,14 @@ console.log('App Show') // 统计上报 - 应用显示 - uni.report({ - name: 'uni-app-show', - success(res_data) { - console.log(res_data); - }, fail(err_data) { - console.log(err_data); - } - }) + // uni.report({ + // name: 'uni-app-show', + // success(res_data) { + // console.log(res_data); + // }, fail(err_data) { + // console.log(err_data); + // } + // }) }, onHide: function () { // 自动化测试 @@ -88,14 +88,14 @@ console.log('App Hide') // 统计上报 - 应用进入后台 - uni.report({ - name: 'uni-app-hide', - success(res) { - console.log(res); - }, fail(err) { - console.log(err); - } - }) + // uni.report({ + // name: 'uni-app-hide', + // success(res) { + // console.log(res); + // }, fail(err) { + // console.log(err); + // } + // }) }, // #ifdef APP-ANDROID onLastPageBackPress: function () { @@ -119,18 +119,18 @@ onExit() { console.log('App Exit') }, - onError(err : any) { - // 统计上报 - 应用发生错误 - uni.report({ - name: 'uni-app-error', - options: err, - success(res) { - console.log(res); - }, fail(err) { - console.log(err); - } - }) - }, + // onError(err : any) { + // // 统计上报 - 应用发生错误 + // uni.report({ + // name: 'uni-app-error', + // options: err, + // success(res) { + // console.log(res); + // }, fail(err) { + // console.log(err); + // } + // }) + // }, // #endif methods: { increasetLifeCycleNum() { diff --git a/main.uts b/main.uts index efe000a0dd271267f80f81629ddf5262fdcf2f0a..48e60deef3d58a9a61b6011017f287165b897a11 100644 --- a/main.uts +++ b/main.uts @@ -1,23 +1,11 @@ // 仅测试 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(() => {