// 仅测试 console.log 时机问题 import './test-main-console.uts' // #ifdef APP-ANDROID || APP-IOS || WEB || MP-WEIXIN import { uniStat } from '@/uni_modules/uni-stat/plugin.uts' // #endif import App from './App.uvue' import { createSSRApp } from 'vue' // 统计配置 const uniStatcollectItems = { uniStatPageLog: true } const uniStatOptions = { debug: false, collectItems: uniStatcollectItems, } export function createApp() { const app = createSSRApp(App) // #ifdef APP-ANDROID || APP-IOS || WEB || MP-WEIXIN app.use(uniStat, uniStatOptions) // #endif // app.mixin({ // onReady() { // setTimeout(() => { // console.log((this as BasePage).$nativePage!.getDomJson()) // }, 100) // } // }) return { app } }