main.uts 447 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2
import App from './App.uvue'

3
import { createSSRApp } from 'vue'
DCloud-WZF's avatar
DCloud-WZF 已提交
4 5
export function createApp() {
  const app = createSSRApp(App)
6 7 8
  app.config.errorHandler = (err, vm, info) => {
    console.log(err, vm, info)
  }
Q
qiang 已提交
9 10
  app.mixin({
    onReady() {
DCloud-WZF's avatar
DCloud-WZF 已提交
11
      // #ifdef APP-ANDROID
Q
qiang 已提交
12 13 14
      setTimeout(() => {
        console.log((this as BasePage).$nativePage!.getDomJson())
      }, 100)
DCloud-WZF's avatar
DCloud-WZF 已提交
15
      // #endif
Q
qiang 已提交
16 17
    }
  })
DCloud-WZF's avatar
DCloud-WZF 已提交
18 19 20
  return {
    app
  }
DCloud-WZF's avatar
DCloud-WZF 已提交
21
}