38 lines
680 B
JavaScript
38 lines
680 B
JavaScript
import App from './App'
|
|
import store from './store'
|
|
|
|
import initRouter from '@/router/router.js'
|
|
|
|
import uView from '@/uni_modules/uview-ui'
|
|
import taskCard from "@/components/taskCard/taskCard.vue"
|
|
import mybtn from "@/components/mybtn/mybtn.vue"
|
|
import company from "@/components/company/company.vue"
|
|
Vue.use(uView)
|
|
Vue.use(taskCard)
|
|
Vue.use(mybtn)
|
|
Vue.use(company)
|
|
|
|
initRouter()
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
Vue.config.productionTip = false
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
...App,
|
|
store
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|