import uviewPlus from '@/uni_modules/uview-plus'
|
|
import "@/static/styles/index.scss"
|
|
import store from './store'
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
import App from './App'
|
|
import shareMixin from '@/utils/shareMixin.js'
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
App.mpType = 'app'
|
|
|
|
// 全局混入分享功能
|
|
Vue.mixin(shareMixin)
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.use(uviewPlus)
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
import App from './App.vue'
|
|
import CustomerService from '@/components/CustomerService/index.vue'
|
|
import shareMixin from '@/utils/shareMixin.js'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(uviewPlus)
|
|
app.use(store)
|
|
// 全局注册客服按钮组件
|
|
app.component('CustomerService', CustomerService)
|
|
// 全局混入分享功能
|
|
app.mixin(shareMixin)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
|
|
// #endif
|