68 lines
1.9 KiB
JavaScript
68 lines
1.9 KiB
JavaScript
import App from './App'
|
|
import store from './store/index'
|
|
import uView from './uni_modules/uview-ui'
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import './utils/showMsg.js'
|
|
import './uni.promisify.adaptor'
|
|
import CommonCard from 'components/custom/common-card.nvue'
|
|
import SameCard from 'components/custom/same-card.vue'
|
|
import QuerySelector from 'components/custom/query-selector.vue'
|
|
import FullUpload from 'components/custom/full-upload.vue'
|
|
import CheckAction from 'components/custom/check-action.vue'
|
|
import PeopleSelector from 'components/custom/people-selector/index.vue'
|
|
import PeopleSelectorDep from 'components/custom/people-selector-dep/index.vue'
|
|
import PeopleSelectorFo from 'components/custom/people-selector-fo/index.vue'
|
|
import AuditProcess from 'components/custom/audit-process.vue'
|
|
import initToast from "@/components/custom/show-info/initToast.js"
|
|
import showToast from "@/components/custom/show-info/show-toast.vue"
|
|
import TableOwn from "@/components/custom/table.vue"
|
|
import Progress from"@/components/custom/progress.vue"
|
|
|
|
|
|
|
|
|
|
// import "./uni_modules/uview-ui/index.scss"
|
|
|
|
Vue.component('common-card', CommonCard)
|
|
Vue.component('same-card', SameCard)
|
|
Vue.component('query-selector', QuerySelector)
|
|
Vue.component('full-upload', FullUpload)
|
|
Vue.component('check-action', CheckAction)
|
|
Vue.component('people-selector', PeopleSelector)
|
|
Vue.component('people-selector-dep', PeopleSelectorDep)
|
|
Vue.component('people-selector-fo', PeopleSelectorFo)
|
|
Vue.component('audit-process', AuditProcess)
|
|
Vue.component('table-own', TableOwn)
|
|
Vue.component('progress-video', Progress)
|
|
initToast(Vue);
|
|
Vue.component('show-toast',showToast);
|
|
|
|
Vue.use(uView)
|
|
Vue.config.productionTip = false
|
|
// Vue.prototype.$store = store
|
|
App.mpType = 'app'
|
|
App.store = store
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(store)
|
|
// app.use(VueAxios)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|