猫妈狗爸伴宠师小程序前端代码
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.
 
 
 
 

44 lines
866 B

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