main.uts 674 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2
// 仅测试 console.log 时机问题
import './test-main-console.uts'
M
mehaotian 已提交
3
// import { uniStat } from '@/uni_modules/uni-stat/plugin.uts'
DCloud-WZF's avatar
DCloud-WZF 已提交
4
import App from './App.uvue'
DCloud-WZF's avatar
DCloud-WZF 已提交
5

DCloud-WZF's avatar
DCloud-WZF 已提交
6 7 8
import { createSSRApp } from 'vue'

// 统计配置
M
mehaotian 已提交
9 10 11
// const collectItems = {
// 	uniStatPageLog: true
// }
M
mehaotian 已提交
12

M
mehaotian 已提交
13 14 15 16
// const statOptions = {
// 	debug: false,
// 	collectItems: collectItems,
// }
DCloud-WZF's avatar
DCloud-WZF 已提交
17 18

export function createApp() {
DCloud-WZF's avatar
DCloud-WZF 已提交
19
  const app = createSSRApp(App)
M
mehaotian 已提交
20
  // app.use(uniStat, statOptions)
Q
qiang 已提交
21 22 23 24 25 26 27
  // app.mixin({
  //   onReady() {
  //     setTimeout(() => {
  //       console.log((this as BasePage).$nativePage!.getDomJson())
  //     }, 100)
  //   }
  // })
DCloud-WZF's avatar
DCloud-WZF 已提交
28 29 30
  return {
    app
  }
DCloud-WZF's avatar
DCloud-WZF 已提交
31
}