main.uts 406 字节
Newer Older
1 2 3 4
// 仅测试 console.log 时机问题
import './test-main-console.uts'

import App from './App.uvue'
DCloud-WZF's avatar
DCloud-WZF 已提交
5

6
import { createSSRApp } from 'vue'
DCloud-WZF's avatar
DCloud-WZF 已提交
7 8
export function createApp() {
  const app = createSSRApp(App)
Q
qiang 已提交
9 10 11 12 13 14 15
  // app.mixin({
  //   onReady() {
  //     setTimeout(() => {
  //       console.log((this as BasePage).$nativePage!.getDomJson())
  //     }, 100)
  //   }
  // })
DCloud-WZF's avatar
DCloud-WZF 已提交
16 17 18
  return {
    app
  }
DCloud-WZF's avatar
DCloud-WZF 已提交
19
}