You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.1 KiB
74 lines
2.1 KiB
import App from './App' |
|
|
|
// #ifndef VUE3 |
|
import Vue from 'vue' |
|
import './uni.promisify.adaptor' |
|
Vue.config.productionTip = false |
|
App.mpType = 'app' |
|
const app = new Vue({ |
|
...App |
|
}) |
|
app.$mount() |
|
// #endif |
|
|
|
// #ifdef VUE3 |
|
import { |
|
createSSRApp |
|
} from 'vue' |
|
import uviewPlus from 'uview-plus' |
|
import fantMini from '@/uni_modules/fant-mini-plus' |
|
import functions from '@/utils/functions' |
|
import saomiao from '@/compoment/saomiao.vue' |
|
import tips from '@/compoment/tips/tips.vue' |
|
import tiplist from '@/compoment/tiplist/tiplist.vue' |
|
import InputNum from '@/compoment/InputNum/InputNum.vue'; |
|
import BasicContainer from '@/compoment/BasicContainer/BasicContainer.vue'; |
|
import PopUp from '@/compoment/PopUp/PopUp.vue'; |
|
import PullDownBox from '@/compoment/PullDownBox/PullDownBox.vue'; |
|
/** 树形组件 */ |
|
import MyTree from '@/compoment/MyTree/MyTree.vue' |
|
/** 复选框 */ |
|
import CheckBox from '@/compoment/CheckBox/CheckBox.vue' |
|
/** 扫描组件 */ |
|
import saomiao2 from '@/compoment/saomiao2.vue' |
|
/** 输入框组件 */ |
|
import MyInput from '@/compoment/MyInput/MyInput.vue'; |
|
/** 抽屉组件 */ |
|
import MyDrawer from '@/compoment/MyDrawer/MyDrawer'; |
|
/** 图片显示组件 */ |
|
import ShowImgBox from '@/compoment/ShowImgBox/ShowImgBox'; |
|
|
|
import utils from '@/utils/utils.js' |
|
import Store from '@/store/index.js' |
|
import * as Pinia from 'pinia'; |
|
export function createApp() { |
|
const app = createSSRApp(App) |
|
app.config.warnHandler = () => null |
|
app.provide('functions', functions) |
|
app.provide('utils', utils) |
|
app.use(uviewPlus) |
|
app.use(Store) |
|
app.use(Pinia.createPinia()) |
|
app.use(fantMini) |
|
app |
|
.component('saomiao', saomiao) |
|
.component('tips', tips) |
|
.component('tiplist', tiplist) |
|
.component('saomiao2', saomiao2) |
|
.component('InputNum', InputNum) |
|
.component('BasicContainer', BasicContainer) |
|
.component('PopUp', PopUp) |
|
.component('PullDownBox', PullDownBox) |
|
.component('MyTree', MyTree) |
|
.component('CheckBox', CheckBox) |
|
.component('MyInput', MyInput) |
|
.component('MyDrawer', MyDrawer) |
|
.component('ShowImgBox', ShowImgBox) |
|
|
|
uni.$u.config.unit = 'rpx' |
|
return { |
|
app, |
|
Pinia |
|
} |
|
} |
|
// #endif
|