|
- import App from './App'
- import store from './store'
-
- import Vue from 'vue'
- Vue.config.productionTip = false
- App.mpType = 'app'
-
- // 引入全局TuniaoUI
- import TuniaoUI from 'tuniao-ui'
- Vue.use(TuniaoUI)
-
- // 引入全局uView
- import uView from 'uview-ui'
- Vue.use(uView);
-
- // 引入TuniaoUI提供的vuex简写方法
- let vuexStore = require('@/store/$t.mixin.js')
- Vue.mixin(vuexStore)
-
- // 引入TuniaoUI对小程序分享的mixin封装
- let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
-
- import wLoading from "@/components/w-loading.vue";
- Vue.component('w-loading', wLoading)
- // 引入页面公告的代码
- let globalPageCode = require('@/mixin/global_page_mixin.js')
- Vue.mixin(globalPageCode)
-
- const app = new Vue({
- store,
- ...App
- })
- app.$mount()
- // import {
- // createSSRApp
- // } from 'vue'
- // import TnIcon from '@tuniao/tnui-vue3-uniapp/components/icon/src/icon.vue'
- // export function createApp() {
- // const app = createSSRApp(App)
- // app.component('TnIcon', TnIcon)
- // return {
- // app
- // }
- // }
|