OfficeApp/main.js

44 lines
840 B
JavaScript
Raw Normal View History

2023-07-15 17:27:06 +08:00
import App from './App'
2023-07-15 17:51:20 +08:00
import store from './store'
2023-07-15 17:27:06 +08:00
2023-07-25 15:27:07 +08:00
import initRouter from '@/router/router.js'
2023-07-15 17:51:20 +08:00
import uView from '@/uni_modules/uview-ui'
import taskCard from "@/components/taskCard/taskCard.vue"
2023-08-04 11:33:43 +08:00
import mybtn from "@/components/mybtn/mybtn.vue"
import company from "@/components/company/company.vue"
2023-08-18 16:03:25 +08:00
2023-07-15 17:51:20 +08:00
Vue.use(uView)
Vue.use(taskCard)
2023-08-04 11:33:43 +08:00
Vue.use(mybtn)
Vue.use(company)
2023-07-25 15:27:07 +08:00
2023-08-25 10:56:53 +08:00
// initRouter()
2023-09-09 09:03:38 +08:00
// 让app的onLaunch先执行主要是用来进行登录
Vue.prototype.$onLaunched = new Promise(resolve => {
Vue.prototype.$isResolve = resolve
})
2023-07-25 15:27:07 +08:00
2023-08-28 18:24:47 +08:00
2023-07-15 17:27:06 +08:00
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
2023-08-18 16:03:25 +08:00
...App,
store
2023-07-15 17:27:06 +08:00
})
app.$mount()
// #endif
// #ifdef VUE3
2023-08-18 16:03:25 +08:00
import {
createSSRApp
} from 'vue'
2023-07-15 17:27:06 +08:00
export function createApp() {
2023-08-18 16:03:25 +08:00
const app = createSSRApp(App)
return {
app
}
2023-07-15 17:27:06 +08:00
}
2023-08-18 16:03:25 +08:00
// #endif