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.
49 lines
1.3 KiB
49 lines
1.3 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 saomiao1 from '@/compoment/saomiao1.vue' |
|
import saomiao2 from '@/compoment/saomiao2.vue' |
|
import saomiao3 from '@/compoment/saomiao3.vue' |
|
import saomiao4 from '@/compoment/saomiao4.vue' |
|
import utils from '@/utils/utils.js' |
|
import Store from '@/store/index.js' |
|
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(fantMini) |
|
app |
|
.component('saomiao',saomiao) |
|
.component('tips',tips) |
|
.component('tiplist',tiplist) |
|
.component('saomiao1',saomiao1) |
|
.component('saomiao2',saomiao2) |
|
.component('saomiao3',saomiao3) |
|
.component('saomiao4',saomiao4) |
|
uni.$u.config.unit = 'rpx' |
|
return { |
|
app |
|
} |
|
} |
|
// #endif
|