| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // #ifndef VUE3
- import Vue from 'vue'
- import App from './App'
- import navBar from '@/components/navBar/index.vue'
- Vue.component('navBar', navBar)
- import uView from '@/uni_modules/uview-ui'
- Vue.use(uView)
- import store from 'store/index.js'
- Vue.prototype.$store = store
- // import store from "@/store";
- // let vuexStore = require('@/store/$t.mixin.js');
- // Vue.mixin(vuexStore);
- // 引入请求封装
- require('./utils/request/index')(app)
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import {
- createSSRApp
- } from 'vue'
- import App from './App.vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
|